doc/go1.18: move debug/buildinfo to core library section

It is a new package and seems a major change.

Updates #47694.

Change-Id: If854e494e28bcd1e79c99e59119755b9cb6793d6
Reviewed-on: https://go-review.googlesource.com/c/go/+/371816
Trust: Cherry Mui <cherryyz@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
This commit is contained in:
Cherry Mui 2021-12-14 16:15:30 -05:00
parent 0f05ed3b78
commit fc8ae9860a
1 changed files with 12 additions and 13 deletions

View File

@ -393,6 +393,18 @@ Do not send CLs removing the interior tags from such phrases.
generic functions. generic functions.
</p> </p>
<h3 id="debug/buildinfo">New <code>debug/buildinfo</code> package</h3>
<p><!-- golang.org/issue/39301 -->
The new <a href="/pkg/debug/buildinfo"><code>debug/buildinfo</code></a> package
provides access to module versions, version control information, and build
flags embedded in executable files built by the <code>go</code> command.
The same information is also available via
<a href="/pkg/runtime/debug#ReadBuildInfo"><code>runtime/debug.ReadBuildInfo</code></a>
for the currently running binary and via <code>go</code>
<code>version</code> <code>-m</code> on the command line.
</p>
<h3 id="netip">New <code>net/netip</code> package</h3> <h3 id="netip">New <code>net/netip</code> package</h3>
<p> <p>
@ -484,19 +496,6 @@ Do not send CLs removing the interior tags from such phrases.
</dd> </dd>
</dl><!-- crypto/tls --> </dl><!-- crypto/tls -->
<dl id="debug/buildinfo"><dt><a href="/pkg/debug/buildinfo">debug/buildinfo</a></dt>
<dd>
<p><!-- golang.org/issue/39301 -->
This new package provides access to module versions, version control
information, and build flags embedded in executable files built by
the <code>go</code> command. The same information is also available via
<a href="/pkg/runtime/debug#ReadBuildInfo"><code>runtime/debug.ReadBuildInfo</code></a>
for the currently running binary and via <code>go</code>
<code>version</code> <code>-m</code> on the command line.
</p>
</dd>
</dl>
<dl id="go/ast"><dt><a href="/pkg/go/ast/">go/ast</a></dt> <dl id="go/ast"><dt><a href="/pkg/go/ast/">go/ast</a></dt>
<dd> <dd>
<p><!-- https://golang.org/issue/47781, CL 325689, CL 327149, CL 348375, CL 348609 --> <p><!-- https://golang.org/issue/47781, CL 325689, CL 327149, CL 348375, CL 348609 -->