diff options
author | Ian Lance Taylor <iant@golang.org> | 2021-01-20 20:41:16 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2021-01-25 22:42:25 +0000 |
commit | 96a276363b130d0f0e5185f2f17c0f6bce43f885 (patch) | |
tree | d89c9dba6efa2753f2993d54ef9b3a7d5a6e152f /doc | |
parent | 3d85c69a0bf67adec57b76511ccc5e5b0ba9cdf4 (diff) | |
download | go-96a276363b130d0f0e5185f2f17c0f6bce43f885.tar.gz go-96a276363b130d0f0e5185f2f17c0f6bce43f885.zip |
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 <iant@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/go1.16.html | 31 |
1 files changed, 31 insertions, 0 deletions
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) { </dd> </dl><!-- flag --> +<dl id="go/build"><dt><a href="/pkg/go/build/">go/build</a></dt> + <dd> + <p><!-- CL 243941, CL 283636 --> + The <a href="/pkg/go/build/#Package"><code>Package</code></a> + struct has new fields that report information + about <code>//go:embed</code> directives in the package: + <a href="/pkg/go/build/#Package.EmbedPatterns"><code>EmbedPatterns</code></a>, + <a href="/pkg/go/build/#Package.EmbedPatternPos"><code>EmbedPatternPos</code></a>, + <a href="/pkg/go/build/#Package.TestEmbedPatterns"><code>TestEmbedPatterns</code></a>, + <a href="/pkg/go/build/#Package.TestEmbedPatternPos"><code>TestEmbedPatternPos</code></a>, + <a href="/pkg/go/build/#Package.XTestEmbedPatterns"><code>XTestEmbedPatterns</code></a>, + <a href="/pkg/go/build/#Package.XTestEmbedPatternPos"><code>XTestEmbedPatternPos</code></a>. + </p> + + <p><!-- CL 240551 --> + The <a href="/pkg/go/build/#Package"><code>Package</code></a> field + <a href="/pkg/go/build/#Package.IgnoredGoFiles"><code>IgnoredGoFiles</code></a> + will no longer include files that start with "_" or ".", + as those files are always ignored. + <code>IgnoredGoFiles</code> is for files ignored because of + build constraints. + </p> + + <p><!-- CL 240551 --> + The new <a href="/pkg/go/build/#Package"><code>Package</code></a> + field <a href="/pkg/go/build/#Package.IgnoredOtherFiles"><code>IgnoredOtherFiles</code></a> + has a list of non-Go files ignored because of build constraints. + </p> + </dd> +</dl><!-- go/build --> + <dl id="html/template"><dt><a href="/pkg/html/template/">html/template</a></dt> <dd> <p><!-- CL 243938 --> |