loader

package
v0.0.1-2020.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Graph

func 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 LoadFromExport

func LoadFromExport(pkg *packages.Package) error

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

func LoadFromSource

func LoadFromSource(pkg *packages.Package) error

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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