Documentation ¶
Index ¶
- type Engine
- type File
- type FileError
- type Loader
- func (l *Loader) Close() error
- func (l *Loader) FindImportPath(p *Package, importPath string) (string, error)
- func (l *Loader) FindPackage(absPath string) (*Package, error)
- func (l *Loader) HandleTypeCheckerError(e error)
- func (l *Loader) LoadDirectory(startDir string) error
- func (l *Loader) Signal()
- func (l *Loader) String() string
- func (l *Loader) Wait()
- type Option
- type Package
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
File is an AST file and any errors that types.Config.Check discovers
type Loader ¶
type Loader struct { StartDir string Tags []string Log log.Logger PackageHashSet map[collections.Hash]bool // contains filtered or unexported fields }
Loader is the workspace-specific configuration and context for building and type-checking
func (*Loader) FindImportPath ¶
FindImportPath is used by the loader engine locate the path to a packge imported by the specified package
func (*Loader) FindPackage ¶
FindPackage will locate the package at the provided path
func (*Loader) HandleTypeCheckerError ¶
HandleTypeCheckerError is invoked from the types.Checker when it encounters errors
func (*Loader) LoadDirectory ¶
LoadDirectory adds the contents of a directory to the Loader
type Option ¶
type Option func(l *Loader)
Option provides a hook for NewLoader to set or modify the new loader's build.Context
type Package ¶
type Package struct { AbsPath string Fset *token.FileSet // contains filtered or unexported fields }
Package contains the os/arch specific package AST
func NewPackage ¶
NewPackage returns a new instance of Package
func (*Package) FindSource ¶
func (*Package) Hash ¶
func (p *Package) Hash() collections.Hash
Hash returns the hash for this package
func (*Package) WaitUntilReady ¶
func (p *Package) WaitUntilReady(loadState loadState)
WaitUntilReady blocks until this package has loaded sufficiently for the requested load state.