mirror of
https://github.com/golang/go.git
synced 2025-11-10 13:41:05 +00:00
cmd/go: add documentation for Embed fields in go list output
This change the struct fields for EmbedPatterns and EmbedFiles to the Package struct listed in the go list documentation that specifies the fields available to the go list template. Fixes #43081 Change-Id: I89c325a9d6292a6ce484ee588b172d2f84e2333a Reviewed-on: https://go-review.googlesource.com/c/go/+/282195 Trust: Michael Matloob <matloob@golang.org> Run-TryBot: Michael Matloob <matloob@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Bryan C. Mills <bcmills@google.com> Reviewed-by: Jay Conrod <jayconrod@google.com>
This commit is contained in:
parent
e60cffa4ca
commit
7cee66d4cb
2 changed files with 8 additions and 0 deletions
|
|
@ -840,6 +840,10 @@
|
|||
// TestGoFiles []string // _test.go files in package
|
||||
// XTestGoFiles []string // _test.go files outside package
|
||||
//
|
||||
// // Embedded files
|
||||
// EmbedPatterns []string // //go:embed patterns
|
||||
// EmbedFiles []string // files and directories matched by EmbedPatterns
|
||||
//
|
||||
// // Cgo directives
|
||||
// CgoCFLAGS []string // cgo: flags for C compiler
|
||||
// CgoCPPFLAGS []string // cgo: flags for C preprocessor
|
||||
|
|
|
|||
|
|
@ -89,6 +89,10 @@ to -f '{{.ImportPath}}'. The struct being passed to the template is:
|
|||
TestGoFiles []string // _test.go files in package
|
||||
XTestGoFiles []string // _test.go files outside package
|
||||
|
||||
// Embedded files
|
||||
EmbedPatterns []string // //go:embed patterns
|
||||
EmbedFiles []string // files and directories matched by EmbedPatterns
|
||||
|
||||
// Cgo directives
|
||||
CgoCFLAGS []string // cgo: flags for C compiler
|
||||
CgoCPPFLAGS []string // cgo: flags for C preprocessor
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue