Documentation
¶
Index ¶
- func AddImportFile(k, v string)
- func EvalSymlinks(modPkg, modFile, objPkg string) string
- func GetAstPackage(objPkg, objFile string) (*ast.Package, bool)
- func GetImportPkg(i string) string
- func GetModuleInfo(n int) (string, string, bool)
- func NewStructParser(modPkg, modFile string) *structParser
- type AstDoc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EvalSymlinks ¶
EvalSymlinks Return to relative path . 通过module 游标返回包相对路径
func GetAstPackage ¶
GetAstPackage Parsing source file ast structure (with main restriction).解析源文件ast结构(带 main 限制)
func GetModuleInfo ¶
GetModuleInfo 获取项目[module name] [根目录绝对地址]
func NewStructParser ¶
func NewStructParser(modPkg, modFile string) *structParser
NewStructParser 新建一个导出结构体类
Types ¶
type AstDoc ¶
type AstDoc struct {
// contains filtered or unexported fields
}
func (*AstDoc) FillPackage ¶
func (*AstDoc) ResolveController ¶
ResolveController analysis controller
@param controllerName @return *ctlScheme
func (*AstDoc) ResolveMethod ¶
func (a *AstDoc) ResolveMethod(methodName string) (*methodComment, *doc.StructInfo, *doc.StructInfo)
ResolveMethod analysis method by name
@param methodName @return *methodComment @return *doc.StructInfo @return *doc.StructInfo
Click to show internal directories.
Click to hide internal directories.