]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.19: mention new unix build constraint
authorIan Lance Taylor <iant@golang.org>
Mon, 28 Mar 2022 22:28:41 +0000 (15:28 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 29 Mar 2022 02:25:12 +0000 (02:25 +0000)
For #51572

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

index c71d5e760b4c45880962e701b1bebef1d8923210..c0e2cf1761f00c60f7d55aea24d2a3e589e39f50 100644 (file)
@@ -34,6 +34,23 @@ Do not send CLs removing the interior tags from such phrases.
 <p>
   TODO: complete this section, or delete if not needed
 </p>
+
+<h4 id="go-unix">New <code>unix</code> build constraint</h4>
+
+<p><!-- CL 389934 -->
+  The build constraint <code>unix</code> is now recognized
+  in <code>//go:build</code> lines. The constraint is satisfied
+  if the target operating system, also known as <code>GOOS</code>, is
+  a Unix or Unix-like system. For the 1.19 release it is satisfied
+  if <code>GOOS</code> is one of
+  <code>aix</code>, <code>android</code>, <code>darwin</code>,
+  <code>dragonfly</code>, <code>freebsd</code>, <code>hurd</code>,
+  <code>illumos</code>, <code>ios</code>, <code>linux</code>,
+  <code>netbsd</code>, <code>openbsd</code>, or <code>solaris</code>.
+  In future releases the <code>unix</code> constraint may match
+  additional newly supported operating systems.
+</p>
+
 <h2 id="runtime">Runtime</h2>
 <p>
   TODO: complete this section, or delete if not needed