Documentation ¶
Overview ¶
Package importpaths exposes part of the functionality in the go tool for referring to import paths, typically from the command line arguments.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllPackages ¶
AllPackages returns all the packages that can be found under the $GOPATH directories matching pattern. The pattern is either "all" (all packages) or a path including "...".
func AllPackagesInFS ¶
AllPackagesInFS is like AllPackages but is passed a pattern beginning ./ or ../, meaning it should scan the tree rooted at the given directory. There are ... in the pattern too.
func ImportPaths ¶
ImportPaths returns the import paths to use for the given command line.
func ImportPathsNoDotExpansion ¶
ImportPathsNoDotExpansion returns the import paths to use for the given command line, but it does no ... expansion.
func IsStandardImportPath ¶
IsStandardImportPath reports whether $GOROOT/src/path should be considered part of the standard distribution. For historical reasons we allow people to add their own code to $GOROOT instead of using $GOPATH, but we assume that code will start with a domain name (dot in the first element).
Types ¶
This section is empty.