diff --git a/generate/swaggergen/g_docs.go b/generate/swaggergen/g_docs.go index 3e8cca0..b99f900 100644 --- a/generate/swaggergen/g_docs.go +++ b/generate/swaggergen/g_docs.go @@ -362,11 +362,11 @@ func analyseControllerPkg(vendorPath, localName, pkgpath string) { pkgRealpath = wg } else { wgopath := gopaths - for _, wg := range wgopath { - wg, _ = filepath.EvalSymlinks(filepath.Join(wg, "src", pkgpath)) - if utils.FileExists(wg) { - pkgRealpath = wg - break + for _, wg := range wgopath { + wg, _ = filepath.EvalSymlinks(filepath.Join(wg, "src", pkgpath)) + if utils.FileExists(wg) { + pkgRealpath = wg + break } } }