]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: document PackageError in go list output
authorIan Lance Taylor <iant@golang.org>
Mon, 18 Jan 2016 23:40:47 +0000 (15:40 -0800)
committerIan Lance Taylor <iant@golang.org>
Thu, 21 Jan 2016 01:35:07 +0000 (01:35 +0000)
Fixes #14007.

Change-Id: I1f73dfccb466d8fd00efbd8c92a31ac538bf5988
Reviewed-on: https://go-review.googlesource.com/18731
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/go/alldocs.go
src/cmd/go/list.go

index ea2eb77470e1a4ccaaed7c52933b4dc426961c3f..5db4bc6beca4d4d9a31791a26a96e5fa112719e9 100644 (file)
@@ -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:
index 35c7cc4f2a73a8168570695625c88f6a2b56700e..8f741a636b1700219a972fca935a9c97e233ffa9 100644 (file)
@@ -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: