Skip to content

Commit

Permalink
doc: add release notes for changes to encoding packages
Browse files Browse the repository at this point in the history
For golang#53693.

Change-Id: I360f5cb9caf5fa77267a100eebcc282955677abe
Reviewed-on: https://go-review.googlesource.com/c/go/+/547755
Reviewed-by: Robert Griesemer <[email protected]>
Reviewed-by: Michael Knyszek <[email protected]>
Auto-Submit: Robert Griesemer <[email protected]>
Reviewed-by: Joseph Tsai <[email protected]>
TryBot-Bypass: Robert Griesemer <[email protected]>
  • Loading branch information
griesemer authored and ezz-no committed Feb 17, 2024
1 parent 39d9650 commit 23a2f02
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions doc/go1.22.html
Original file line number Diff line number Diff line change
Expand Up @@ -324,16 +324,21 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>

<dl id="encoding"><dt><a href="/pkg/encoding/">encoding</a></dt>
<dd>
<p><!-- https://go.dev/issue/53693 -->
TODO: <a href="https://go.dev/issue/53693">https://go.dev/issue/53693</a>: provide append-like variants
</p>

<p><!-- CL 504884 -->
TODO: <a href="https://go.dev/cl/504884">https://go.dev/cl/504884</a>: encoding: add AppendEncode and AppendDecode; modified api/next/53693.txt
</p>

<p><!-- CL 505236 -->
TODO: <a href="https://go.dev/cl/505236">https://go.dev/cl/505236</a>: encoding: reject negative runes in Encoding.WithPadding; Providing a negative rune to Encoding.WithPadding other than NoPadding made no semantic sense, and will now panic.
<p><!-- https://go.dev/issue/53693, https://go.dev/cl/504884 -->
The new methods <code>AppendEncode</code> and <code>AppendDecode</code> added to
each of the <code>Encoding</code> types in the packages
<a href="/pkg/encoding/base32"><code>encoding/base32</code></a>,
<a href="/pkg/encoding/base64"><code>encoding/base64</code></a>, and
<a href="/pkg/encoding/hex"><code>encoding/hex</code></a>
simplify encoding and decoding from and to byte slices by taking care of byte slice buffer management.
</p>

<p><!-- https://go.dev/cl/505236 -->
The methods
<a href="/pkg/encoding/base32#Encoding.WithPadding"><code>base32.Encoding.WithPadding</code></a> and
<a href="/pkg/encoding/base64#Encoding.WithPadding"><code>base64.Encoding.WithPadding</code></a>
now panic if the <code>padding</code> argument is a negative value other than
<code>NoPadding</code>.
</p>
</dd>
</dl><!-- encoding -->
Expand Down

0 comments on commit 23a2f02

Please sign in to comment.