package loader
import "honnef.co/go/tools/loader"
Index ¶
- func Graph(cfg packages.Config, patterns ...string) ([]*packages.Package, error)
- func LoadFromExport(pkg *packages.Package) error
- func LoadFromSource(pkg *packages.Package) error
Functions ¶
func Graph ¶
Graph resolves patterns and returns packages with all the information required to later load type information, and optionally syntax trees.
The provided config can set any setting with the exception of Mode.
func LoadFromExport ¶
LoadFromExport loads a package from export data. All of its dependencies must have been loaded already.
func LoadFromSource ¶
LoadFromSource loads a package from source. All of its dependencies must have been loaded already.
Source Files ¶
loader.go
- Version
- v0.0.1-2020.1.1
- Published
- Feb 21, 2020
- Platform
- windows/amd64
- Imports
- 11 packages
- Last checked
- 7 minutes ago –
Tools for package owners.