Documentation
¶
Index ¶
- func AssumeImport(dir string) (pkgName string, pkgPath string)
- func AssumePkgName(pkgPath string) string
- func EqObjectName(name string) func(*ast.Object) bool
- func FindPkgPath(file *ast.File, pkgName string) string
- func GetPkgName(decl ast.Expr) (pkgName string)
- func GetTypeName(decl ast.Expr) (typName string)
- func IsExported(obj *ast.Object) bool
- func IsStructObject(obj *ast.Object) bool
- func ObjectByFunc(pkg *ast.Package, fn func(*ast.Object) bool) (*ast.File, *ast.Object, bool)
- func ParsePkgPath(pkgPath string) (*ast.Package, error)
- type VisitorFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssumeImport ¶
func AssumePkgName ¶
func GetPkgName ¶
func GetTypeName ¶
func IsExported ¶
func IsStructObject ¶
func ObjectByFunc ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.