Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver determines all Go Source files that are imported by Go-Files in the passed paths
func NewResolver ¶
NewResolver returns a resolver that resolves all go source files in the GoDirs and their imports to filepaths. env specifies the environment variables to use during resolving. If empty or nil the default Go environment is used.
func (*Resolver) Resolve ¶
func (r *Resolver) Resolve( ctx context.Context, workdir string, environment []string, buildFlags []string, withTests bool, queries []string, ) ([]string, error)
Resolve returns the Go source files in the passed directories plus all source files of the imported packages. Testfiles and stdlib dependencies are ignored.
Click to show internal directories.
Click to hide internal directories.