2c420573 by astaxie

fix #703

1 parent c0d3cc6f
......@@ -65,11 +65,13 @@ func parserPkg(pkgRealpath, pkgpath string) error {
for _, d := range fl.Decls {
switch specDecl := d.(type) {
case *ast.FuncDecl:
if specDecl.Recv != nil {
parserComments(specDecl.Doc, specDecl.Name.String(), fmt.Sprint(specDecl.Recv.List[0].Type.(*ast.StarExpr).X), pkgpath)
}
}
}
}
}
genRouterCode()
savetoFile(pkgRealpath)
return nil
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!