Versions in this module Expand all Collapse all v0 v0.0.1 Jan 26, 2026 Changes in this version + func GetCaller(n *ast.CallExpr) (string, bool) + func GetExprTypeName(expr ast.Expr) string + func GetFunctionChain(n *ast.CallExpr) string + func GetPackageImportPaths(f *ast.File) map[string]string + func GetReceiverTypeName(fn *ast.FuncDecl, ignorePointer ...bool) string + func GetStructInfo(n *ast.GenDecl) (string, *ast.StructType, bool) + func GetVarDeclsFromFile(file *ast.File) map[string]*ast.ValueSpec + func GetVarDeclsFromFunc(body *ast.BlockStmt) map[string]*ast.ValueSpec + func GetVarTypes(node ast.Node) map[string]string + func InspectPackage(srcDir string, excludeDirs []string) (map[string]*Package, error) + func MatchCall(n *ast.CallExpr, signature *CallSignature, imports map[string]string) bool + func MatchFunction(fn *ast.FuncDecl, signature *FunctionSignature) bool + func ParseFunctionCallChain(n *ast.CallExpr) []string + func ResolveVarType(expr ast.Expr) string + type ASTUtils interface + InspectFunction func(srcPath string, fnParams, fnResults []string, annotationPrefix string) ([]*Function, error) + InspectPackage func(rootDir string, excludeDirs []string) (map[string]*Package, error) + type Annotation struct + Name string + Value string + type CallSignature struct + ArgCount int + ArgIndex2Signature map[int]string + FunctionChain string + Package string + type Function struct + Annotations map[string]*Annotation + Function string + PlainComments []string + Receiver string + func InspectFunction(srcPath string, fnParams, fnResults []string, annotationPrefix string) ([]*Function, error) + type FunctionSignature struct + NamePattern *regexp.Regexp + Params []string + Results []string + type Package struct + FileSet *token.FileSet + Files map[string]*ast.File + Name string Other modules containing this package github.com/hdget/utils