gosource

package
v3.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: GPL-2.0 Imports: 10 Imported by: 0

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

func NewResolver(debugLogFn func(string, ...any)) *Resolver

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL