pkgload

package
v0.0.0-...-855ca64 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Pkg  *packages.Package
	Doc  *doc.Package
	Fset *token.FileSet
	// ImportRenames is a map from package path to local name or "".
	ImportRenames map[string]string
	Status        string
}

Info holds info about a package.

func Load

func Load(glob, workingDir string, filter []string) ([]Info, error)

Load parses the given glob and returns info for the matching packages. The workingDir is used for module detection. Packages that match the filter are ignored.

Jump to

Keyboard shortcuts

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