1
0
mirror of https://github.com/beego/bee.git synced 2024-12-22 15:10:49 +00:00

fix #338 failed to generate swagger doc

This commit is contained in:
tangshancheng 2016-12-14 23:57:59 +08:00
parent 2ccbbb47e4
commit b0928f186f

View File

@ -95,7 +95,7 @@ func parsePackagesFromDir(dirpath string) {
return nil
}
if !strings.Contains(fpath, "vendor") {
if !strings.Contains(fpath, "vendor") && !strings.Contains(fpath, "tests") {
err = parsePackageFromDir(fpath)
if err != nil {
// Send the error to through the channel and continue walking