Skip to content

Commit 96a2763

Browse files
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 <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent 3d85c69 commit 96a2763

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

doc/go1.16.html

+31
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,37 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
693693
</dd>
694694
</dl><!-- flag -->
695695

696+
<dl id="go/build"><dt><a href="/pkg/go/build/">go/build</a></dt>
697+
<dd>
698+
<p><!-- CL 243941, CL 283636 -->
699+
The <a href="/pkg/go/build/#Package"><code>Package</code></a>
700+
struct has new fields that report information
701+
about <code>//go:embed</code> directives in the package:
702+
<a href="/pkg/go/build/#Package.EmbedPatterns"><code>EmbedPatterns</code></a>,
703+
<a href="/pkg/go/build/#Package.EmbedPatternPos"><code>EmbedPatternPos</code></a>,
704+
<a href="/pkg/go/build/#Package.TestEmbedPatterns"><code>TestEmbedPatterns</code></a>,
705+
<a href="/pkg/go/build/#Package.TestEmbedPatternPos"><code>TestEmbedPatternPos</code></a>,
706+
<a href="/pkg/go/build/#Package.XTestEmbedPatterns"><code>XTestEmbedPatterns</code></a>,
707+
<a href="/pkg/go/build/#Package.XTestEmbedPatternPos"><code>XTestEmbedPatternPos</code></a>.
708+
</p>
709+
710+
<p><!-- CL 240551 -->
711+
The <a href="/pkg/go/build/#Package"><code>Package</code></a> field
712+
<a href="/pkg/go/build/#Package.IgnoredGoFiles"><code>IgnoredGoFiles</code></a>
713+
will no longer include files that start with "_" or ".",
714+
as those files are always ignored.
715+
<code>IgnoredGoFiles</code> is for files ignored because of
716+
build constraints.
717+
</p>
718+
719+
<p><!-- CL 240551 -->
720+
The new <a href="/pkg/go/build/#Package"><code>Package</code></a>
721+
field <a href="/pkg/go/build/#Package.IgnoredOtherFiles"><code>IgnoredOtherFiles</code></a>
722+
has a list of non-Go files ignored because of build constraints.
723+
</p>
724+
</dd>
725+
</dl><!-- go/build -->
726+
696727
<dl id="html/template"><dt><a href="/pkg/html/template/">html/template</a></dt>
697728
<dd>
698729
<p><!-- CL 243938 -->

0 commit comments

Comments
 (0)