Documentation ¶
Overview ¶
Package gopathwalk is like filepath.Walk but specialized for finding Go packages, particularly in $GOPATH and $GOROOT.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct { Debug bool // Enable debug logging ModulesEnabled bool // Search module caches. Also disables legacy goimports ignore rules. }
Options controls the behavior of a Walk call.
type Root ¶
A Root is a starting point for a Walk.
func SrcDirsRoots ¶
func SrcDirsRoots() []Root
SrcDirsRoots returns the roots from build.Default.SrcDirs(). Not modules-compatible.
Click to show internal directories.
Click to hide internal directories.