Versions in this module Expand all Collapse all v0 v0.1.1 May 12, 2022 v0.1.0 May 12, 2022 Changes in this version + const FromArgsUsage + type Config struct + AfterTypeCheck func(info *PackageInfo, files []*ast.File) + AllowErrors bool + Build *build.Context + CreatePkgs []PkgSpec + Cwd string + DisplayPath func(path string) string + FindPackage func(ctxt *build.Context, importPath, fromDir string, mode build.ImportMode) (*build.Package, error) + Fset *token.FileSet + ImportPkgs map[string]bool + ParserMode parser.Mode + TypeCheckFuncBodies func(path string) bool + TypeChecker types.Config + func (conf *Config) CreateFromFilenames(path string, filenames ...string) + func (conf *Config) CreateFromFiles(path string, files ...*ast.File) + func (conf *Config) FromArgs(args []string, xtest bool) ([]string, error) + func (conf *Config) Import(path string) + func (conf *Config) ImportWithTests(path string) + func (conf *Config) Load() (*Program, error) + func (conf *Config) ParseFile(filename string, src interface{}) (*ast.File, error) + type PackageInfo struct + Errors []error + Files []*ast.File + Importable bool + Pkg *types.Package + TransitivelyErrorFree bool + func (info *PackageInfo) String() string + type PkgSpec struct + Filenames []string + Files []*ast.File + Path string + type Program struct + AllPackages map[*types.Package]*PackageInfo + Created []*PackageInfo + Fset *token.FileSet + Imported map[string]*PackageInfo + func (prog *Program) InitialPackages() []*PackageInfo + func (prog *Program) Package(path string) *PackageInfo + func (prog *Program) PathEnclosingInterval(start, end token.Pos) (pkg *PackageInfo, path []ast.Node, exact bool)