From cfc8658ab2b277c67f324c1b6a2bcd8c093813eb Mon Sep 17 00:00:00 2001 From: Sergey Lanzman Date: Mon, 12 Dec 2016 22:35:39 +0200 Subject: [PATCH] fix bug with generate swagger. --- g_docs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/g_docs.go b/g_docs.go index ca9a877..bff0d5e 100644 --- a/g_docs.go +++ b/g_docs.go @@ -95,7 +95,7 @@ func parsePackagesFromDir(dirpath string) { return nil } - if fileInfo.Name() != "vendor" { + if !strings.Contains(fpath, "vendor") { err = parsePackageFromDir(fpath) if err != nil { // Send the error to through the channel and continue walking