Documentation
¶
Overview ¶
The resource package helps an application locate files important to the program. In this early state, the package searches $GOPATH, but eventually more features will be added.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Locator ¶
type Locator interface { // Path translates a resource name into // a full filesystem path. Path(rsc string) (string, error) }
A Locator knows how to find resources
func NewPathLocator ¶
NewPathLocator creates a Locator which uses a fixed set of base paths to find a given resource. Set a non-empty goPathRepo to append $GOPATH/src/$goPathRepo to the list of paths. It is not considered an error if $GOPATH isn't defined.
Click to show internal directories.
Click to hide internal directories.