Documentation
¶
Index ¶
- func FindFilesFuncDecls(files []*ast.File) []*ast.FuncDecl
- func FindFuncDeclByName(file *ast.File, funcName string) (*ast.FuncDecl, error)
- func FindFuncDecls(file *ast.File) []*ast.FuncDecl
- func GetFunc(pkg *packages.Package, funcName string) (*ast.FuncDecl, error)
- func GetFuncs(pkg *packages.Package) []*ast.FuncDecl
- func GetPackage(folder, packageName string) (*packages.Package, error)
- func GetPackages(folder string) ([]*packages.Package, error)
- func GetType(pkg *packages.Package, target ast.Expr) (*types.TypeAndValue, error)
- func Inspect(node ast.Node, pre func(ast.Node), f func(ast.Node) bool, post func(ast.Node))
- func ParseFile(code string) (*ast.File, error)
- func Walk(v Visitor, node ast.Node)
- type Visitor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindFuncDeclByName ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.