1
0
mirror of https://github.com/golang/go synced 2024-11-26 11:18:56 -07:00

doc: add release notes for changes to encoding packages

For #53693.

Change-Id: I360f5cb9caf5fa77267a100eebcc282955677abe
Reviewed-on: https://go-review.googlesource.com/c/go/+/547755
Reviewed-by: Robert Griesemer <gri@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Joseph Tsai <joetsai@digital-static.net>
TryBot-Bypass: Robert Griesemer <gri@google.com>
This commit is contained in:
Robert Griesemer 2023-12-05 13:40:45 -08:00 committed by Gopher Robot
parent 1661bf02c8
commit 01dfae914b

View File

@ -324,16 +324,21 @@ Do not send CLs removing the interior tags from such phrases.
<dl id="encoding"><dt><a href="/pkg/encoding/">encoding</a></dt> <dl id="encoding"><dt><a href="/pkg/encoding/">encoding</a></dt>
<dd> <dd>
<p><!-- https://go.dev/issue/53693 --> <p><!-- https://go.dev/issue/53693, https://go.dev/cl/504884 -->
TODO: <a href="https://go.dev/issue/53693">https://go.dev/issue/53693</a>: provide append-like variants 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>
<p><!-- CL 504884 --> <p><!-- https://go.dev/cl/505236 -->
TODO: <a href="https://go.dev/cl/504884">https://go.dev/cl/504884</a>: encoding: add AppendEncode and AppendDecode; modified api/next/53693.txt The methods
</p> <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>
<p><!-- CL 505236 --> now panic if the <code>padding</code> argument is a negative value other than
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. <code>NoPadding</code>.
</p> </p>
</dd> </dd>
</dl><!-- encoding --> </dl><!-- encoding -->