func bytes.Cut
10 uses
bytes (current package)
bytes.go#L1291: func Cut(s, sep []byte) (before, after []byte, found bool) {
encoding/pem
pem.go#L94: } else if _, after, ok := bytes.Cut(rest, pemStart); ok {
pem.go#L120: key, val, ok := bytes.Cut(line, colon)
encoding/xml
xml.go#L2017: before, after, ok := bytes.Cut(s, cdataEnd)
go/build
build.go#L1261: comment, _, _ = bytes.Cut(data[2:], newline)
build.go#L1264: comment, _, ok = bytes.Cut(data[2:], starSlash)
net/http/internal
chunked.go#L171: p, _, _ = bytes.Cut(p, semi)
net/textproto
reader.go#L513: k, v, ok := bytes.Cut(kv, colon)
runtime/pprof
proto.go#L623: f, line, _ = bytes.Cut(line, space)
proto.go#L629: line, data, _ = bytes.Cut(data, newline)