func bytes.Cut
10 uses
bytes (current package)
bytes.go#L1398: func Cut(s, sep []byte) (before, after []byte, found bool) {
encoding/pem
pem.go#L96: } else if _, after, ok := bytes.Cut(rest, pemStart); ok {
pem.go#L122: key, val, ok := bytes.Cut(line, colon)
go/build
build.go#L1327: comment, _, _ = bytes.Cut(data[2:], newline)
build.go#L1330: comment, _, ok = bytes.Cut(data[2:], starSlash)
net/http/internal
chunked.go#L207: p, _, _ = bytes.Cut(p, semi)
net/textproto
reader.go#L548: k, v, ok := bytes.Cut(kv, colon)
reader.go#L625: line, peek, _ = bytes.Cut(peek, nl)
runtime/pprof
proto.go#L689: f, line, _ = bytes.Cut(line, space)
proto.go#L695: line, data, _ = bytes.Cut(data, newline)