diff --git a/doc/go1.22.html b/doc/go1.22.html index e7f7e48889..12203742bd 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.
- 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.