diff options
author | Michael Matloob <matloob@golang.org> | 2021-01-06 22:13:45 -0500 |
---|---|---|
committer | Michael Matloob <matloob@golang.org> | 2021-01-07 18:56:09 +0000 |
commit | 7cee66d4cb6e726c6c37798583ac0b86c8743f82 (patch) | |
tree | 5fe3935d4b39f590c481c8ee1389651fdf588944 /src/cmd/go/alldocs.go | |
parent | e60cffa4ca9ae726d96b53817d82d98402017772 (diff) | |
download | go-7cee66d4cb6e726c6c37798583ac0b86c8743f82.tar.gz go-7cee66d4cb6e726c6c37798583ac0b86c8743f82.zip |
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>
Diffstat (limited to 'src/cmd/go/alldocs.go')
-rw-r--r-- | src/cmd/go/alldocs.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go index 78f114f6af..d4303c2aad 100644 --- a/src/cmd/go/alldocs.go +++ b/src/cmd/go/alldocs.go @@ -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 |