Documentation
¶
Index ¶
- func AddExternalParams(extractor *Extractor, target *model.GenTarget, pkg *packages.Package) error
- func FindBuildCall(fn *ast.FuncDecl, info *types.Info) *ast.CallExpr
- func FindDigCallInBlock(block *ast.BlockStmt, info *types.Info, methodName string) *ast.CallExpr
- func ValidateReturnType(fnDecl *ast.FuncDecl, info *types.Info) error
- type ExtractedArg
- type Extractor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddExternalParams ¶
导出函数
func FindDigCallInBlock ¶
Types ¶
type ExtractedArg ¶
---------- 新模型 ----------
type Extractor ¶
type Extractor struct {
// contains filtered or unexported fields
}
func NewExtractor ¶
func NewExtractor(pkgMap map[string]*packages.Package, mainPkgPath string, strategy alias.AliasStrategy) *Extractor
NewExtractor 创建提取器
func (*Extractor) ExtractOptions ¶
导出方法
func (*Extractor) PkgAliasMap ¶
Click to show internal directories.
Click to hide internal directories.