go/pkg/mod/golang.org/x/[email protected]/go/packages/golist.go

var (
	debug
	_
)

type goTooOldError

type responseDeduper

func newDeduper() *responseDeduper {}

// addAll fills in r with a driverResponse.
func (r *responseDeduper) addAll(dr *driverResponse) {}

func (r *responseDeduper) addPackage(p *Package) {}

func (r *responseDeduper) addRoot(id string) {}

type golistState

// getEnv returns Go environment variables. Only specific variables are
// populated -- computing all of them is slow.
func (state *golistState) getEnv() (map[string]string, error) {}

// mustGetEnv is a convenience function that can be used if getEnv has already succeeded.
func (state *golistState) mustGetEnv() map[string]string {}

// goListDriver uses the go list command to interpret the patterns and produce
// the build system package structure.
// See driver for more details.
func goListDriver(cfg *Config, patterns ...string) (*driverResponse, error) {}

func (state *golistState) addNeededOverlayPackages(response *responseDeduper, pkgs []string) error {}

func (state *golistState) runContainsQueries(response *responseDeduper, queries []string) error {}

// adhocPackage attempts to load or construct an ad-hoc package for a given
// query, if the original call to the driver produced inadequate results.
func (state *golistState) adhocPackage(pattern, query string) (*driverResponse, error) {}

type jsonPackage

type jsonPackageError

func otherFiles(p *jsonPackage) [][]string {}

// createDriverResponse uses the "go list" command to expand the pattern
// words and return a response for the specified packages.
func (state *golistState) createDriverResponse(words ...string) (*driverResponse, error) {}

func (state *golistState) shouldAddFilenameFromError(p *jsonPackage) bool {}

func (state *golistState) getGoVersion() (int, error) {}

// getPkgPath finds the package path of a directory if it's relative to a root
// directory.
func (state *golistState) getPkgPath(dir string) (string, bool, error) {}

// absJoin absolutizes and flattens the lists of files.
func absJoin(dir string, fileses ...[]string) (res []string) {}

func golistargs(cfg *Config, words []string) []string {}

// cfgInvocation returns an Invocation that reflects cfg's settings.
func (state *golistState) cfgInvocation() gocommand.Invocation {}

// invokeGo returns the stdout of a go command invocation.
func (state *golistState) invokeGo(verb string, args ...string) (*bytes.Buffer, error) {}

type OverlayJSON

// writeOverlays writes out files for go list's -overlay flag, as described
// above.
func (state *golistState) writeOverlays() (filename string, cleanup func(), err error) {}

func containsGoFile(s []string) bool {}

func cmdDebugStr(cmd *exec.Cmd) string {}