toolshonnef.co/go/tools/loader Index | Files

package loader

import "honnef.co/go/tools/loader"

Index

Types

type Loader

type Loader struct {
	// contains filtered or unexported fields
}

func (*Loader) Graph

func (ld *Loader) Graph(cfg packages.Config, patterns ...string) ([]*packages.Package, error)

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 (*Loader) LoadFromExport

func (ld *Loader) LoadFromExport(pkg *packages.Package) error

LoadFromExport loads a package from export data. All of its dependencies must have been loaded already.

func (*Loader) LoadFromSource

func (ld *Loader) LoadFromSource(pkg *packages.Package) error

LoadFromSource loads a package from source. All of its dependencies must have been loaded already.

Source Files

loader.go

Version
v0.0.0-2019.2.1
Published
Jun 27, 2019
Platform
windows/amd64
Imports
11 packages
Last checked
7 minutes ago

Tools for package owners.