Versions in this module Expand all Collapse all v1 v1.0.0 Nov 21, 2023 Changes in this version + func BuildFunctionCallExpr(pkgName string, funcName string, args []ast.Expr) *ast.CallExpr + func GetAllFiles(dir string) ([]string, error) + func GetCurrentFileAbsPath() (string, bool) + func GetProjectAbsPath() (path string, ok error) + func ParseFile(filePath string, f func(n ast.Node) bool) (err error) + type File struct + Path string + func NewFile(path string) *File + func (_this *File) GetAbsPath() (string, error) + func (_this *File) GetDirAllFiles() ([]string, error) + func (_this *File) GetDirPath() (string, error) + func (_this *File) GetFileExt() string + func (_this *File) GetFileName() string + func (_this *File) Inspect(f func(n ast.Node) bool) (err error) + func (_this *File) InspectMethods(f func(funcDecl *ast.FuncDecl) bool) (err error) + func (_this *File) IsAbs() bool + func (_this *File) IsDir() (bool, error) + func (_this *File) IsFile() (bool, error) + func (_this *File) Open() (*os.File, error) + func (_this *File) OpenFile(flag int, perm os.FileMode) (*os.File, error) + func (_this *File) OpenFileFunc(flag int, perm os.FileMode, action func(*os.File) error) (err error) + func (_this *File) OpenFunc(action func(*os.File) error) (err error) + func (_this *File) ParseFile() (f *ast.File, err error) + func (_this *File) WalkDir(f func(path string, info os.FileInfo, err error) error) (err error)