diff --git a/g_docs.go b/g_docs.go index 04c0400..ab1c8b1 100644 --- a/g_docs.go +++ b/g_docs.go @@ -333,6 +333,13 @@ func isSystemPackage(pkgpath string) bool { if utils.FileExists(wg) { return true } + + //TODO(zh):support go1.4 + wg, _ = filepath.EvalSymlinks(filepath.Join(goroot, "src", pkgpath)) + if utils.FileExists(wg) { + return true + } + return false }