Commit 33a784e1 authored by Ian Lance Taylor's avatar Ian Lance Taylor

cmd/go: document PackageError in go list output

Fixes #14007.

Change-Id: I1f73dfccb466d8fd00efbd8c92a31ac538bf5988
Reviewed-on: https://go-review.googlesource.com/18731Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent e8e1928b
...@@ -603,6 +603,14 @@ syntax of package template. The default output is equivalent to -f ...@@ -603,6 +603,14 @@ syntax of package template. The default output is equivalent to -f
XTestImports []string // imports from XTestGoFiles 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 "join" calls strings.Join.
The template function "context" returns the build context, defined as: The template function "context" returns the build context, defined as:
......
...@@ -78,6 +78,14 @@ syntax of package template. The default output is equivalent to -f ...@@ -78,6 +78,14 @@ syntax of package template. The default output is equivalent to -f
XTestImports []string // imports from XTestGoFiles 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 "join" calls strings.Join.
The template function "context" returns the build context, defined as: The template function "context" returns the build context, defined as:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment