Skip to content

Commit 869af57

Browse files
committedMay 26, 2023
doc: release notes for my humble contributions to go1.21
Updates #58645 Change-Id: Ieb4e6062613e26826ba8373cb4c2fd9198d0c692 Reviewed-on: https://go-review.googlesource.com/c/go/+/496116 Reviewed-by: Eli Bendersky <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Alan Donovan <[email protected]> TryBot-Bypass: Eli Bendersky <[email protected]>
1 parent 7756f82 commit 869af57

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed
 

‎doc/go1.21.html

+18-16
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ <h2 id="ports">Ports</h2>
6060
<!-- replace CallImport with go:wasmimport directive -->
6161
</p>
6262

63-
<h3 id="wasip1">WebAssembly</h3>
63+
<h3 id="wasm">WebAssembly</h3>
6464

6565
<!-- https://go.dev/issue/59149 -->
6666
<p>
@@ -131,7 +131,7 @@ <h3 id="go-command">Go command</h3>
131131
<!-- cmd/go: make go test build multiple executables; The go test command now supports using the -c flag with multiple packages. -->
132132
</p>
133133

134-
<h2 id="runtime">Runtime</h2>
134+
<h2 id="runtime-changes">Runtime</h2>
135135

136136
<p>
137137
TODO: complete this section, or delete if not needed
@@ -414,17 +414,18 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
414414

415415
<dl id="go/ast"><dt><a href="/pkg/go/ast/">go/ast</a></dt>
416416
<dd>
417-
<p><!-- https://go.dev/issue/28089 -->
418-
TODO: <a href="https://go.dev/issue/28089">https://go.dev/issue/28089</a>: add func IsGenerated(*File) bool
417+
<p><!-- https://go.dev/issue/28089, CL 487935 -->
418+
The new <a href="/pkg/go/ast/#IsGenerated"><code>IsGenerated</code></a> predicate
419+
reports whether a file syntax tree contains the
420+
<a href="https://go.dev/s/generatedcode">special comment</a>
421+
that conventionally indicates that the file was generated by a tool.
419422
</p>
423+
</dd>
420424

425+
<dd>
421426
<p><!-- CL 476276 -->
422427
TODO: <a href="https://go.dev/cl/476276">https://go.dev/cl/476276</a>: go/ast: add File.GoVersion; modified api/next/59033.txt
423428
</p>
424-
425-
<p><!-- CL 487935 -->
426-
TODO: <a href="https://go.dev/cl/487935">https://go.dev/cl/487935</a>: go/ast: add IsGenerated(*File) predicate; modified api/next/28089.txt
427-
</p>
428429
</dd>
429430
</dl><!-- go/ast -->
430431

@@ -446,8 +447,10 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
446447

447448
<dl id="go/token"><dt><a href="/pkg/go/token/">go/token</a></dt>
448449
<dd>
449-
<p><!-- CL 464515 -->
450-
TODO: <a href="https://go.dev/cl/464515">https://go.dev/cl/464515</a>: go/token: add (*File).Lines method; modified api/next/57708.txt
450+
<p><!-- https://go.dev/issue/57708, CL 464515 -->
451+
The new <a href="/pkg/go/token/#File.Lines"><code>File.Lines</code></a> method
452+
returns the file's line-number table in the same form as accepted by
453+
<code>File.SetLines</code>.
451454
</p>
452455
</dd>
453456
</dl><!-- go/token -->
@@ -554,12 +557,11 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
554557

555558
<dl id="math/big"><dt><a href="/pkg/math/big/">math/big</a></dt>
556559
<dd>
557-
<p><!-- https://go.dev/issue/56984 -->
558-
TODO: <a href="https://go.dev/issue/56984">https://go.dev/issue/56984</a>: add Int.Float64 conversion (was initially: {ToInt64,ToUint64,Float64})
559-
</p>
560-
561-
<p><!-- CL 453115 -->
562-
TODO: <a href="https://go.dev/cl/453115">https://go.dev/cl/453115</a>: math/big: add Int.Float64 conversion; modified api/next/56984.txt
560+
<p><!-- https://go.dev/issue/56984, CL 453115 -->
561+
The new <a href="/pkg/math/big/#Int.ToFloat64"><code>Int.ToFloat64</code></a>
562+
method returns the nearest floating-point value to a
563+
multi-precision integer, along with an indication of any
564+
rounding that occurred.
563565
</p>
564566
</dd>
565567
</dl><!-- math/big -->

0 commit comments

Comments
 (0)
Please sign in to comment.