func strings.CutPrefix
20 uses
strings (current package)
strings.go#L1281: func CutPrefix(s, prefix string) (after string, found bool) {
github.com/jackc/pgx/v5/pgtype
circle.go#L199: str, ok := strings.CutPrefix(string(src), "<(")
path.go#L256: str, found = strings.CutPrefix(rest, ",")
polygon.go#L237: str, found = strings.CutPrefix(rest, ",")
go.pact.im/x/httprange
contentrange.go#L75: completeLengthStr, ok := strings.CutPrefix(str, "*/")
go/ast
ast.go#L1134: 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 {
google.golang.org/grpc
server.go#L1825: sm, found := strings.CutPrefix(stream.Method(), "/")
internal/buildcfg
cfg.go#L90: v, ok := strings.CutPrefix(v, "v1.")
cfg.go#L97: if v, ok = strings.CutPrefix(v, "."); !ok {
cfg.go#L106: if v, ok = strings.CutPrefix(v, "-rc"); ok {
cfg.go#L110: if v, ok = strings.CutPrefix(v, "-"); ok {
internal/goroot
gc.go#L80: if after, ok := strings.CutPrefix(dirEntry, prefix); ok {
mime
mediatype.go#L107: if rest, ok = strings.CutPrefix(rest, "/"); !ok {
mediatype.go#L321: if rest, ok = strings.CutPrefix(rest, ";"); !ok {
mediatype.go#L333: if rest, ok = strings.CutPrefix(rest, "="); !ok {
net/http
server.go#L532: if kk, found := strings.CutPrefix(k, TrailerPrefix); found {
net/http/pprof
pprof.go#L395: if name, found := strings.CutPrefix(r.URL.Path, "/debug/pprof/"); found {