Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var IgnorePrefix = []string{
".",
"_",
"vendor/",
"testdata/",
}
Functions ¶
func Gopath ¶
func Gopath() string
Gopath gets GOPATH from environment and return the most relevant path.
A GOPATH can contain a colon-separated list of paths. This retrieves the GOPATH and returns only the FIRST ("most relevant") path.
This should be used carefully. If, for example, you are looking for a package, you may be better off using Gopaths.
func Gopaths ¶
func Gopaths() []string
Gopaths retrieves the Gopath as a list when there is more than one path listed in the Gopath.
func WhichGopath ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.