mirror of
https://github.com/golang/go
synced 2024-11-12 09:50:21 -07:00
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 <bradfitz@golang.org>
This commit is contained in:
parent
e8e1928bd2
commit
33a784e1f7
@ -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:
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user