Documentation ¶
Index ¶
- Variables
- func IsSameObject(a, b types.Object) bool
- func IsSamePkg(a, b *types.Package) bool
- type FileCursor
- type ObjKind
- type PkgConfig
- type PkgWalker
- func (w *PkgWalker) CheckIsImport(cursor *FileCursor) *ast.ImportSpec
- 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) LookupImport(pkg *types.Package, pkgInfo *types.Info, cursor *FileCursor, ...)
- func (w *PkgWalker) LookupObjects(conf *PkgConfig, cursor *FileCursor)
- func (w *PkgWalker) LookupStructFromField(info *types.Info, cursorPkg *types.Package, cursorObj types.Object, ...) types.Object
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &command.Command{
Run: runTypes,
UsageLine: "types",
Short: "golang type util",
Long: `golang type util`,
}
View Source
var ObjKindName = []string{"none", "package",
"type", "interface", "struct",
"const", "var", "field",
"func", "method",
"label", "builtin", "nil"}
Functions ¶
func IsSameObject ¶
Types ¶
type FileCursor ¶
type FileCursor struct {
// contains filtered or unexported fields
}
type PkgWalker ¶
type PkgWalker struct {
// contains filtered or unexported fields
}
func NewPkgWalker ¶
func (*PkgWalker) CheckIsImport ¶
func (w *PkgWalker) CheckIsImport(cursor *FileCursor) *ast.ImportSpec
func (*PkgWalker) LookupCursor ¶
func (w *PkgWalker) LookupCursor(pkg *types.Package, conf *PkgConfig, cursor *FileCursor)
func (*PkgWalker) LookupImport ¶
func (w *PkgWalker) LookupImport(pkg *types.Package, pkgInfo *types.Info, cursor *FileCursor, is *ast.ImportSpec)
func (*PkgWalker) LookupObjects ¶
func (w *PkgWalker) LookupObjects(conf *PkgConfig, cursor *FileCursor)
Click to show internal directories.
Click to hide internal directories.