From b0928f186fb3fe8f341863f852b4543c1c206ff9 Mon Sep 17 00:00:00 2001 From: tangshancheng Date: Wed, 14 Dec 2016 23:57:59 +0800 Subject: [PATCH] fix #338 failed to generate swagger doc --- g_docs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/g_docs.go b/g_docs.go index bff0d5e..fbc22b3 100644 --- a/g_docs.go +++ b/g_docs.go @@ -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