From a68e8ae3e88c378430a1c2a35dd9a484bee9d4b0 Mon Sep 17 00:00:00 2001 From: Hanjiang Yu Date: Sun, 26 Jul 2020 10:41:52 +0800 Subject: [PATCH] Parse AST even not in GOPATH --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index ef51e0d..bbc9284 100644 --- a/main.go +++ b/main.go @@ -69,7 +69,7 @@ func main() { // Check if current directory is inside the GOPATH, // if so parse the packages inside it. - if utils.IsInGOPATH(currentpath) && cmd.IfGenerateDocs(c.Name(), args) { + if cmd.IfGenerateDocs(c.Name(), args) { swaggergen.ParsePackagesFromDir(currentpath) } os.Exit(c.Run(c, args))