mirror of
https://github.com/beego/bee.git
synced 2024-11-22 10:10:53 +00:00
fix analisys bug
This commit is contained in:
parent
ff63f454a7
commit
4305da2f3f
@ -156,7 +156,8 @@ func generateDocs(curpath string) {
|
|||||||
switch smtp := l.(type) {
|
switch smtp := l.(type) {
|
||||||
case *ast.AssignStmt:
|
case *ast.AssignStmt:
|
||||||
for _, l := range smtp.Rhs {
|
for _, l := range smtp.Rhs {
|
||||||
f, params := analisysNewNamespace(l.(*ast.CallExpr))
|
if v, ok := l.(*ast.CallExpr); ok {
|
||||||
|
f, params := analisysNewNamespace(v)
|
||||||
globalDocsTemplate = strings.Replace(globalDocsTemplate, "{{.version}}", f, -1)
|
globalDocsTemplate = strings.Replace(globalDocsTemplate, "{{.version}}", f, -1)
|
||||||
for _, p := range params {
|
for _, p := range params {
|
||||||
switch pp := p.(type) {
|
switch pp := p.(type) {
|
||||||
@ -183,6 +184,8 @@ func generateDocs(curpath string) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user