func strings.CutPrefix
8 uses
strings (current package)
strings.go#L1286: func CutPrefix(s, prefix string) (after string, found bool) {
go.uber.org/goleak/internal/stack
stacks.go#L256: if after, ok := strings.CutPrefix(line, "created by "); ok {
go/ast
ast.go#L1123: if rest, ok := strings.CutPrefix(line, prefix); ok {
go/build
build.go#L186: after, found := strings.CutPrefix(dir, root)
go/printer
comment.go#L39: after, found := strings.CutPrefix(c.Text, "//")
golang.org/x/tools/go/packages
external.go#L93: if val, ok := strings.CutPrefix(env, toolPrefix); ok {
net/http
server.go#L529: if kk, found := strings.CutPrefix(k, TrailerPrefix); found {
net/http/pprof
pprof.go#L387: if name, found := strings.CutPrefix(r.URL.Path, "/debug/pprof/"); found {