]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.18: add section for runtime/debug changes
authorIan Lance Taylor <iant@golang.org>
Tue, 21 Dec 2021 21:58:15 +0000 (13:58 -0800)
committerIan Lance Taylor <iant@golang.org>
Thu, 23 Dec 2021 20:03:38 +0000 (20:03 +0000)
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>
doc/go1.18.html

index a87e3f45f1e693523594a58f4bc22c609c381357..4907dd6e2dcae85fa75e5c1fdeaabe38f112fc14 100644 (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 -->