From: Ian Lance Taylor Date: Mon, 18 Jan 2016 23:40:47 +0000 (-0800) Subject: cmd/go: document PackageError in go list output X-Git-Tag: go1.6rc1~83 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=33a784e1f7fc56ecea696ab07558ca220e3bef0f;p=gostls13.git cmd/go: document PackageError in go list output Fixes #14007. Change-Id: I1f73dfccb466d8fd00efbd8c92a31ac538bf5988 Reviewed-on: https://go-review.googlesource.com/18731 Reviewed-by: Brad Fitzpatrick --- diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go index ea2eb77470..5db4bc6bec 100644 --- a/src/cmd/go/alldocs.go +++ b/src/cmd/go/alldocs.go @@ -603,6 +603,14 @@ syntax of package template. The default output is equivalent to -f XTestImports []string // imports from XTestGoFiles } +The error information, if any, is + + type PackageError struct { + ImportStack []string // shortest path from package named on command line to this one + Pos string // position of error (if present, file:line:col) + Err string // the error itself + } + The template function "join" calls strings.Join. The template function "context" returns the build context, defined as: diff --git a/src/cmd/go/list.go b/src/cmd/go/list.go index 35c7cc4f2a..8f741a636b 100644 --- a/src/cmd/go/list.go +++ b/src/cmd/go/list.go @@ -78,6 +78,14 @@ syntax of package template. The default output is equivalent to -f XTestImports []string // imports from XTestGoFiles } +The error information, if any, is + + type PackageError struct { + ImportStack []string // shortest path from package named on command line to this one + Pos string // position of error (if present, file:line:col) + Err string // the error itself + } + The template function "join" calls strings.Join. The template function "context" returns the build context, defined as: