Package gopathwalk is like filepath.Walk but specialized for finding Go packages, particularly in $GOPATH and $GOROOT.
Walk walks Go source directories ($GOROOT, $GOPATH, etc) to find packages. For each package found, add will be called (concurrently) with the absolute paths of the containing source directory and the package directory. add will be called concurrently.
Options controls the behavior of a Walk call.
A Root is a starting point for a Walk.
SrcDirsRoots returns the roots from build.Default.SrcDirs(). Not modules-compatible.
RootType indicates the type of a Root.