doc/go1.18: add section for runtime/debug changes

For #37475
For #47694

Change-Id: If8c1f1b756daf32648110f1a669b2ea60f797a24
Reviewed-on: https://go-review.googlesource.com/c/go/+/373875
Trust: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
This commit is contained in:
Ian Lance Taylor 2021-12-21 13:58:15 -08:00
parent 0e4b878258
commit b357b05b70

View file

@ -856,6 +856,27 @@ Do not send CLs removing the interior tags from such phrases.
</dd>
</dl><!-- regexp -->
<dl id="runtime/debug"><dt><a href="/pkg/runtime/debug/">runtime/debug</a></dt>
<dd>
<p><!-- CL 354569 -->
The <a href="/pkg/runtime/debug#BuildInfo"><code>BuildInfo</code></a>
struct has two new fields, containing additional information
about how the binary was built:
<ul>
<li><a href="/pkg/runtime/debug#BuildInfo.GoVersion"><code>GoVersion</code></a>
holds the version of Go used to build the binary.
</li>
<li>
<a href="/pkg/runtime/debug#BuildInfo.Settings"><code>Settings</code></a>
is a slice of
<a href="/pkg/runtime/debug#BuildSettings"><code>BuildSettings</code></a>
structs holding key/value pairs describing the build.
</li>
</ul>
</p>
</dd>
</dl><!-- runtime/debug -->
<dl id="strconv"><dt><a href="/pkg/strconv/">strconv</a></dt>
<dd>
<p><!-- CL 343877 -->