loader

package
v0.0.1-2019.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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.

Jump to

Keyboard shortcuts

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