mirror of
https://github.com/beego/bee.git
synced 2024-11-22 10:10:53 +00:00
Merge pull request #339 from onealtang/master
fix #338 failed to generate swagger doc
This commit is contained in:
commit
ea51b6e831
@ -95,7 +95,7 @@ func parsePackagesFromDir(dirpath string) {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if !strings.Contains(fpath, "vendor") {
|
if !strings.Contains(fpath, "vendor") && !strings.Contains(fpath, "tests") {
|
||||||
err = parsePackageFromDir(fpath)
|
err = parsePackageFromDir(fpath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// Send the error to through the channel and continue walking
|
// Send the error to through the channel and continue walking
|
||||||
|
Loading…
Reference in New Issue
Block a user