Documentation
¶
Overview ¶
Package gotool is a library of utility functions used to implement the standard "Go" tool provided as a convenience to developers who want to write tools with similar semantics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DefaultContext = Context{ BuildContext: build.Default, }
Functions ¶
func ImportPaths ¶
ImportPaths returns the import paths to use for the given arguments using default context.
The path "all" is expanded to all packages in $GOPATH and $GOROOT. The path "std" is expanded to all packages in the Go standard library. The string "..." is treated as a wildcard within a path. Relative import paths are not converted to full import paths. If args is empty, a single element "." is returned.
Types ¶
type Context ¶
func (Context) ImportPaths ¶
ImportPaths returns the import paths to use for the given arguments.
The path "all" is expanded to all packages in $GOPATH and $GOROOT. The path "std" is expanded to all packages in the Go standard library. The string "..." is treated as a wildcard within a path. Relative import paths are not converted to full import paths. If args is empty, a single element "." is returned.