Skip to content

Commit 7cee66d

Browse files
committed
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 <[email protected]> Run-TryBot: Michael Matloob <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Bryan C. Mills <[email protected]> Reviewed-by: Jay Conrod <[email protected]>
1 parent e60cffa commit 7cee66d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/cmd/go/alldocs.go

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cmd/go/internal/list/list.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ to -f '{{.ImportPath}}'. The struct being passed to the template is:
8989
TestGoFiles []string // _test.go files in package
9090
XTestGoFiles []string // _test.go files outside package
9191
92+
// Embedded files
93+
EmbedPatterns []string // //go:embed patterns
94+
EmbedFiles []string // files and directories matched by EmbedPatterns
95+
9296
// Cgo directives
9397
CgoCFLAGS []string // cgo: flags for C compiler
9498
CgoCPPFLAGS []string // cgo: flags for C preprocessor

0 commit comments

Comments
 (0)