From 01dfae914bb4658d096c3ab8f5210bcf3f665171 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Tue, 5 Dec 2023 13:40:45 -0800 Subject: [PATCH] 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 Reviewed-by: Michael Knyszek Auto-Submit: Robert Griesemer Reviewed-by: Joseph Tsai TryBot-Bypass: Robert Griesemer --- doc/go1.22.html | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/doc/go1.22.html b/doc/go1.22.html index e7f7e488895..12203742bd9 100644 --- a/doc/go1.22.html +++ b/doc/go1.22.html @@ -324,16 +324,21 @@ Do not send CLs removing the interior tags from such phrases.
encoding
-

- TODO: https://go.dev/issue/53693: provide append-like variants +

+ The new methods AppendEncode and AppendDecode added to + each of the Encoding types in the packages + encoding/base32, + encoding/base64, and + encoding/hex + simplify encoding and decoding from and to byte slices by taking care of byte slice buffer management.

-

- TODO: https://go.dev/cl/504884: encoding: add AppendEncode and AppendDecode; modified api/next/53693.txt -

- -

- TODO: https://go.dev/cl/505236: 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. +

+ The methods + base32.Encoding.WithPadding and + base64.Encoding.WithPadding + now panic if the padding argument is a negative value other than + NoPadding.