diff options
| author | Russ Cox <rsc@golang.org> | 2021-09-21 10:59:16 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2021-10-06 15:53:00 +0000 |
| commit | 8e36ab055162efa6f67f3b9ee62f625ac8874901 (patch) | |
| tree | cf4109df9a5bdea03cc5a2fb25da85d2afd7ee73 /src/os/exec/exec_test.go | |
| parent | 810b08b8ec28ea00bce4c008f7c1b48bc9f3e134 (diff) | |
| download | go-8e36ab055162efa6f67f3b9ee62f625ac8874901.tar.xz | |
bytes, strings: add Cut
Using Cut is a clearer way to write the vast majority (>70%)
of existing code that calls Index, IndexByte, IndexRune, and SplitN.
There is more discussion on https://golang.org/issue/46336.
Fixes #46336.
Change-Id: Ia418ed7c3706c65bf61e1b2c5baf534cb783e4d3
Reviewed-on: https://go-review.googlesource.com/c/go/+/351710
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/os/exec/exec_test.go')
0 files changed, 0 insertions, 0 deletions
