mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 17:00:55 +00:00
fix #703
This commit is contained in:
parent
c0d3cc6fc5
commit
2c420573d4
@ -65,11 +65,13 @@ func parserPkg(pkgRealpath, pkgpath string) error {
|
|||||||
for _, d := range fl.Decls {
|
for _, d := range fl.Decls {
|
||||||
switch specDecl := d.(type) {
|
switch specDecl := d.(type) {
|
||||||
case *ast.FuncDecl:
|
case *ast.FuncDecl:
|
||||||
|
if specDecl.Recv != nil {
|
||||||
parserComments(specDecl.Doc, specDecl.Name.String(), fmt.Sprint(specDecl.Recv.List[0].Type.(*ast.StarExpr).X), pkgpath)
|
parserComments(specDecl.Doc, specDecl.Name.String(), fmt.Sprint(specDecl.Recv.List[0].Type.(*ast.StarExpr).X), pkgpath)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
genRouterCode()
|
genRouterCode()
|
||||||
savetoFile(pkgRealpath)
|
savetoFile(pkgRealpath)
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user