Versions in this module Expand all Collapse all v0 v0.4.5 Sep 2, 2020 Changes in this version + const LoadAllSyntax + const LoadFiles + const LoadImports + const LoadSyntax + const LoadTypes + func PrintErrors(pkgs []*Package) int + func Visit(pkgs []*Package, pre func(*Package) bool, post func(*Package)) + type Config struct + BuildFlags []string + Context context.Context + Dir string + Env []string + Fset *token.FileSet + Logf func(format string, args ...interface{}) + Mode LoadMode + Overlay map[string][]byte + ParseFile func(fset *token.FileSet, filename string, src []byte) (*ast.File, error) + Tests bool + type Error struct + Kind ErrorKind + Msg string + Pos string + func (err Error) Error() string + type ErrorKind int + const ListError + const ParseError + const TypeError + const UnknownError + type LoadMode int + const NeedCompiledGoFiles + const NeedDeps + const NeedExportsFile + const NeedFiles + const NeedImports + const NeedModule + const NeedName + const NeedSyntax + const NeedTypes + const NeedTypesInfo + const NeedTypesSizes + func (mod LoadMode) String() string + type Module struct + Dir string + Error *ModuleError + GoMod string + GoVersion string + Indirect bool + Main bool + Path string + Replace *Module + Time *time.Time + Version string + type ModuleError struct + Err string + type Package struct + CompiledGoFiles []string + Errors []Error + ExportFile string + Fset *token.FileSet + GoFiles []string + ID string + IllTyped bool + Imports map[string]*Package + Module *Module + Name string + OtherFiles []string + PkgPath string + Syntax []*ast.File + Types *types.Package + TypesInfo *types.Info + TypesSizes types.Sizes + func Load(cfg *Config, patterns ...string) ([]*Package, error) + func (p *Package) MarshalJSON() ([]byte, error) + func (p *Package) String() string + func (p *Package) UnmarshalJSON(b []byte) error