From 5e3915099605d4afcf6bd7286d57a1939f5f7929 Mon Sep 17 00:00:00 2001 From: TossPig Date: Mon, 15 Dec 2014 15:13:53 +0800 Subject: [PATCH] =?UTF-8?q?go1.4=E6=BA=90=E7=A0=81=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- g_docs.go | 7 +++++++ 1 file changed, 7 insertions(+) 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 }