diff --git a/doc/go1.18.html b/doc/go1.18.html index 8131afffdbc08f..06c6786bf29062 100644 --- a/doc/go1.18.html +++ b/doc/go1.18.html @@ -403,6 +403,16 @@
+ 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 @@
- TODO: bytes.Cut. -
+ 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 @@
- TODO: strings.Cut. -