Skip to content

Commit b357b05

Browse files
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 <[email protected]> Reviewed-by: Emmanuel Odeke <[email protected]>
1 parent 0e4b878 commit b357b05

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

doc/go1.18.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -856,6 +856,27 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
856856
</dd>
857857
</dl><!-- regexp -->
858858

859+
<dl id="runtime/debug"><dt><a href="/pkg/runtime/debug/">runtime/debug</a></dt>
860+
<dd>
861+
<p><!-- CL 354569 -->
862+
The <a href="/pkg/runtime/debug#BuildInfo"><code>BuildInfo</code></a>
863+
struct has two new fields, containing additional information
864+
about how the binary was built:
865+
<ul>
866+
<li><a href="/pkg/runtime/debug#BuildInfo.GoVersion"><code>GoVersion</code></a>
867+
holds the version of Go used to build the binary.
868+
</li>
869+
<li>
870+
<a href="/pkg/runtime/debug#BuildInfo.Settings"><code>Settings</code></a>
871+
is a slice of
872+
<a href="/pkg/runtime/debug#BuildSettings"><code>BuildSettings</code></a>
873+
structs holding key/value pairs describing the build.
874+
</li>
875+
</ul>
876+
</p>
877+
</dd>
878+
</dl><!-- runtime/debug -->
879+
859880
<dl id="strconv"><dt><a href="/pkg/strconv/">strconv</a></dt>
860881
<dd>
861882
<p><!-- CL 343877 -->

0 commit comments

Comments
 (0)