Documentation
¶
Overview ¶
Package pkgs finds all packages in all of the GOPATH trees. It is library functionality equivalent to `go list all` (see `go help packages` for more info).
Much of the code was adapted from the cmd/go matchPackages func.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindAll ¶
func FindAll(prefix string, buildContext build.Context, mode FindMode) (pkgs []*build.Package, err error)
FindAll returns a list of all packages in all of the GOPATH trees in the given build context. If prefix is non-empty, only packages whose import paths begin with prefix are returned.
Types ¶
Click to show internal directories.
Click to hide internal directories.