Merge pull request #339 from onealtang/master

fix #338 failed to generate swagger doc
This commit is contained in:
astaxie 2016-12-20 16:52:43 +08:00 committed by GitHub
commit ea51b6e831
1 changed files with 1 additions and 1 deletions

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