Versions in this module Expand all Collapse all v1 v1.0.0 Sep 7, 2019 Changes in this version + var ObjKindName = []string + func AllPackages(ctxt *build.Context) []string + func ExpandPatterns(ctxt *build.Context, patterns []string) map[string]bool + func ForEachPackage(ctxt *build.Context, found func(importPath string, err error)) + func ImportPackage(w *PkgWalker, pkgPath string, conf *PkgConfig) (*types.Package, error) + func IsSameObject(a, b types.Object) bool + func IsSamePkg(a, b *types.Package) bool + func ReadDir(ctxt *build.Context, path string) ([]os.FileInfo, error) + type FileCursor struct + type Importer struct + func (im *Importer) Import(name string) (pkg *types.Package, err error) + type ObjKind int + const ObjBuiltin + const ObjComment + const ObjConst + const ObjField + const ObjFunc + const ObjImplicit + const ObjInterface + const ObjLabel + const ObjMethod + const ObjNil + const ObjNone + const ObjPackage + const ObjPackageX + const ObjPkgName + const ObjStruct + const ObjTypeName + const ObjUnknown + const ObjVar + func ParserObjectKind(ident *ast.Ident, obj types.Object, conf *PkgConfig) (ObjKind, error) + func (k ObjKind) String() string + type ObjList struct + Ident *ast.Ident + IsAnonymous bool + IsTestFunc bool + Kind ObjKind + List []int + Obj types.Object + func LookupObjList(w *PkgWalker, pkg *types.Package, conf *PkgConfig) []*ObjList + func NewObjList(kind ObjKind, ident *ast.Ident, obj types.Object) *ObjList + func (o *ObjList) String() string + type PkgConfig struct + AllowBinary bool + Cursor *FileCursor + Dir string + Files []*ast.File + IgnoreFuncBodies bool + Info *types.Info + Pkg *types.Package + TestFiles []*ast.File + WithTestFiles bool + XInfo *types.Info + XPkg *types.Package + XTestFiles []*ast.File + func DefaultPkgConfig() *PkgConfig + type PkgWalker struct + Context *build.Context + FileSet *token.FileSet + func NewPkgWalker(context *build.Context) *PkgWalker + func (w *PkgWalker) CheckIsImport(cursor *FileCursor) *ast.ImportSpec + func (w *PkgWalker) FindDeclForPos(p token.Pos) (*ast.File, ast.Decl) + func (w *PkgWalker) FindImportEndPos(ast *ast.File) token.Pos + func (w *PkgWalker) FindImportName(ast *ast.File, path string) string + func (w *PkgWalker) Import(parentDir string, name string, conf *PkgConfig) (pkg *types.Package, err error) + func (w *PkgWalker) LookupCursor(pkg *types.Package, conf *PkgConfig, cursor *FileCursor) + func (w *PkgWalker) LookupIdentComment(value token.Pos) *ast.CommentGroup + func (w *PkgWalker) LookupImport(pkg *types.Package, pkgInfo *types.Info, cursor *FileCursor, ...) + func (w *PkgWalker) LookupMethodRecvObject(fn *types.Func) types.Object + func (w *PkgWalker) LookupObjects(conf *PkgConfig, cursor *FileCursor) + func (w *PkgWalker) LookupStructFromField(info *types.Info, cursorPkg *types.Package, cursorObj types.Object, ...) types.Object + type Rename struct + New string + Old string