From: Austin Clements Date: Tue, 7 Dec 2021 19:51:45 +0000 (-0500) Subject: doc/go1.18: mention bytes.Cut and strings.Cut X-Git-Tag: go1.18beta1~61 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e08d1fba37ad32fbe7e8d57cd75c9a88dfdde87f;p=gostls13.git doc/go1.18: mention bytes.Cut and strings.Cut For #47694. Updates #46336. Change-Id: Ibbd058a1fd4d6b0aa38d3e8dc15b560d1e149f7e Reviewed-on: https://go-review.googlesource.com/c/go/+/369981 Trust: Austin Clements Reviewed-by: Jeremy Faller --- diff --git a/doc/go1.18.html b/doc/go1.18.html index 8131afffdb..06c6786bf2 100644 --- a/doc/go1.18.html +++ b/doc/go1.18.html @@ -403,6 +403,16 @@ Do not send CLs removing the interior tags from such phrases.
bytes
+

+ The new Cut function + slices a []byte around a separator. It can replace + and simplify many common uses of + Index, + IndexByte, + IndexRune, + and SplitN. +

+

Trim, TrimLeft, and TrimRight are now allocation free and, especially for @@ -414,10 +424,6 @@ Do not send CLs removing the interior tags from such phrases. handle Unicode punctuation and language-specific capitalization rules, and is superseded by the golang.org/x/text/cases package.

- -

- TODO: bytes.Cut. -

@@ -709,6 +715,16 @@ Do not send CLs removing the interior tags from such phrases.
strings
+

+ The new Cut function + slices a string around a separator. It can replace + and simplify many common uses of + Index, + IndexByte, + IndexRune, + and SplitN. +

+

The new Clone function copies the input string without the returned cloned string referencing @@ -726,10 +742,6 @@ Do not send CLs removing the interior tags from such phrases. handle Unicode punctuation and language-specific capitalization rules, and is superseded by the golang.org/x/text/cases package.

- -

- TODO: strings.Cut. -