Skip to content

Commit

Permalink
doc/go1.18: add section for runtime/debug changes
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ianlancetaylor committed Dec 23, 2021
1 parent 0e4b878 commit b357b05
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions doc/go1.18.html
Expand Up @@ -856,6 +856,27 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
</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 -->
Expand Down

0 comments on commit b357b05

Please sign in to comment.