diff options
| author | qiulaidongfeng <2645477756@qq.com> | 2026-04-09 22:04:07 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2026-04-14 06:58:23 -0700 |
| commit | 11b596c22dcabf91f9595da778b00e26f4d661a8 (patch) | |
| tree | db66e08f7c03de7facbeab017e68f8f38f255215 /doc/next/6-stdlib | |
| parent | 33241d7298e0c621cfc4cc9f878dba9eff2b1c3d (diff) | |
| download | go-11b596c22dcabf91f9595da778b00e26f4d661a8.tar.xz | |
bytes,strings: add CutLast
Fixes #71151
Change-Id: I3b3d49c35b0fa2c1220d3f39bbd506cc072b52b0
Reviewed-on: https://go-review.googlesource.com/c/go/+/764601
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Sean Liao <sean@liao.dev>
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
Diffstat (limited to 'doc/next/6-stdlib')
| -rw-r--r-- | doc/next/6-stdlib/99-minor/bytes/71151.md | 3 | ||||
| -rw-r--r-- | doc/next/6-stdlib/99-minor/strings/71151.md | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/doc/next/6-stdlib/99-minor/bytes/71151.md b/doc/next/6-stdlib/99-minor/bytes/71151.md new file mode 100644 index 0000000000..a86361ef5a --- /dev/null +++ b/doc/next/6-stdlib/99-minor/bytes/71151.md @@ -0,0 +1,3 @@ +The new [CutLast] function slices a []byte +around the last occurrence of a separator. +It can replace and simplify some common uses of LastIndex. diff --git a/doc/next/6-stdlib/99-minor/strings/71151.md b/doc/next/6-stdlib/99-minor/strings/71151.md new file mode 100644 index 0000000000..b979f84553 --- /dev/null +++ b/doc/next/6-stdlib/99-minor/strings/71151.md @@ -0,0 +1,3 @@ +The new [CutLast] function slices a string +around the last occurrence of a separator. +It can replace and simplify some common uses of LastIndex.
\ No newline at end of file |
