]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.17: document new go/build/BuildContext.ToolTags field
authorIan Lance Taylor <iant@golang.org>
Fri, 28 May 2021 00:19:12 +0000 (17:19 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 28 May 2021 18:34:18 +0000 (18:34 +0000)
For #44513

Change-Id: Ib21af742e574fcaa7e38bb437d42dbeed9d01f0b
Reviewed-on: https://go-review.googlesource.com/c/go/+/323350
Trust: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
doc/go1.17.html

index 9480b1205c365c2a2f1ad7d331ebd938e96284cf..65d8efdc1b2a4c0886803e4130060e672d0c4061 100644 (file)
@@ -413,6 +413,17 @@ Do not send CLs removing the interior tags from such phrases.
   </dd>
 </dl><!-- flag -->
 
+<dl id="go/build"><dt><a href="/pkg/go/build/">go/build</a></dt>
+  <dd>
+    <p><!-- CL 310732 -->
+      The new
+      <a href="/pkg/go/build/#Context.ToolTags"><code>Context.ToolTags</code></a>
+      field holds the build tags appropriate to the current Go
+      toolchain configuration.
+    </p>
+  </dd>
+</dl><!-- go/build -->
+
 <dl id="io/fs"><dt><a href="/pkg/io/fs/">io/fs</a></dt>
   <dd>
     <p><!-- CL 293649 -->