From: Ian Lance Taylor Date: Thu, 21 Jan 2021 04:41:16 +0000 (-0800) Subject: doc/go1.16: mention go/build changes X-Git-Tag: go1.16rc1~20 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=96a276363b130d0f0e5185f2f17c0f6bce43f885;p=gostls13.git doc/go1.16: mention go/build changes For #40070 For #41191 For #43469 For #43632 Change-Id: I6dc6b6ea0f35876a4c252e4e287a0280aca9d502 Reviewed-on: https://go-review.googlesource.com/c/go/+/285213 Trust: Ian Lance Taylor Reviewed-by: Dmitri Shuralyov --- diff --git a/doc/go1.16.html b/doc/go1.16.html index 9c4910053c..0330ec6b24 100644 --- a/doc/go1.16.html +++ b/doc/go1.16.html @@ -693,6 +693,37 @@ func TestFoo(t *testing.T) { +
go/build
+
+

+ The Package + struct has new fields that report information + about //go:embed directives in the package: + EmbedPatterns, + EmbedPatternPos, + TestEmbedPatterns, + TestEmbedPatternPos, + XTestEmbedPatterns, + XTestEmbedPatternPos. +

+ +

+ The Package field + IgnoredGoFiles + will no longer include files that start with "_" or ".", + as those files are always ignored. + IgnoredGoFiles is for files ignored because of + build constraints. +

+ +

+ The new Package + field IgnoredOtherFiles + has a list of non-Go files ignored because of build constraints. +

+
+
+
html/template