func strings.Replace
66 uses
strings (current package)
strings.go#L924: func Replace(s, old, new string, n int) string {
strings.go#L964: return Replace(s, old, new, -1)
cloud.google.com/go/logging/internal
common.go#L29: logID = strings.Replace(logID, "/", "%2F", -1)
common.go#L40: return strings.Replace(logID, "%2F", "/", -1)
cloud.google.com/go/storage
storage.go#L546: encodedStr = strings.Replace(encodedStr, "+", "%20", -1)
github.com/aws/aws-sdk-go/aws/credentials/processcreds
provider.go#L392: out = []byte(strings.Replace(string(out), `\"`, `"`, -1))
github.com/aws/aws-sdk-go/aws/endpoints
v3model.go#L269: u := strings.Replace(hostname, "{service}", service, 1)
v3model.go#L270: u = strings.Replace(u, "{region}", region, 1)
v3model.go#L271: u = strings.Replace(u, "{dnsSuffix}", dnsSuffix, 1)
github.com/aws/aws-sdk-go/aws/signer/v4
v4.go#L654: ctx.Request.URL.RawQuery = strings.Replace(ctx.Query.Encode(), "+", "%20", -1)
github.com/aws/aws-sdk-go/private/protocol
host_prefix.go#L47: prefix = strings.Replace(prefix, "{"+name+"}", value, -1)
github.com/aws/aws-sdk-go/private/protocol/rest
build.go#L202: u.Path = strings.Replace(u.Path, "{"+name+"}", value, -1)
build.go#L203: u.Path = strings.Replace(u.Path, "{"+name+"+}", value, -1)
build.go#L205: u.RawPath = strings.Replace(u.RawPath, "{"+name+"}", EscapePath(value, true), -1)
build.go#L206: u.RawPath = strings.Replace(u.RawPath, "{"+name+"+}", EscapePath(value, false), -1)
github.com/evanw/esbuild/internal/resolver
resolver.go#L1335: originalPath = strings.Replace(originalPath, "*", matchedText, 1)
github.com/go-git/gcfg
set.go#L40: n += strings.Replace(name, "-", "_", -1)
github.com/golang-migrate/migrate/v4/database/postgres
postgres.go#L217: s = strings.Replace(s, "\r\n", "\n", -1)
github.com/google/pprof/profile
profile.go#L254: file := strings.TrimSpace(strings.Replace(m.File, "(deleted)", "", -1))
github.com/hashicorp/errwrap
errwrap.go#L53: outer := errors.New(strings.Replace(
github.com/jackc/pgconn
config.go#L472: val = strings.Replace(strings.Replace(s[:end], "\\\\", "\\", -1), "\\'", "'", -1)
config.go#L492: val = strings.Replace(strings.Replace(s[:end], "\\\\", "\\", -1), "\\'", "'", -1)
pgconn.go#L1644: return strings.Replace(s, "'", "''", -1), nil
github.com/jackc/pgpassfile
pgpass.go#L72: line = strings.Replace(line, `\\`, tmpBackslash, -1)
pgpass.go#L73: line = strings.Replace(line, `\:`, tmpColon, -1)
pgpass.go#L82: parts[i] = strings.Replace(parts[i], tmpBackslash, `\`, -1)
pgpass.go#L83: parts[i] = strings.Replace(parts[i], tmpColon, `:`, -1)
github.com/jmespath/go-jmespath
lexer.go#L250: value = strings.Replace(value, "\\`", "`", -1)
github.com/lib/pq
array.go#L353: strings.Replace(fmt.Sprint(dims), " ", "][", -1))
array.go#L367: strings.Replace(fmt.Sprint(dims), " ", "][", -1), dv.Type())
array.go#L753: return nil, fmt.Errorf("pq: cannot convert ARRAY%s to %s", strings.Replace(fmt.Sprint(dims), " ", "][", -1), typ)
conn.go#L1507: return `"` + strings.Replace(name, `"`, `""`, -1) + `"`
conn.go#L1527: literal = strings.Replace(literal, `'`, `''`, -1)
conn.go#L1534: literal = strings.Replace(literal, `\`, `\\`, -1)
github.com/prometheus/procfs
proc.go#L76: pid, err := strconv.Atoi(strings.Replace(p, string(fs.proc), "", -1))
zoneinfo.go#L181: protectionValues := strings.Replace(protectionParts[1], "(", "", 1)
zoneinfo.go#L182: protectionValues = strings.Replace(protectionValues, ")", "", 1)
github.com/sergi/go-diff/diffmatchpatch
diff.go#L1163: text := strings.Replace(html.EscapeString(diff.Text), "\n", "¶
", -1)
diff.go#L1262: _, _ = text.WriteString(strings.Replace(url.QueryEscape(aDiff.Text), "+", " ", -1))
diff.go#L1303: param = strings.Replace(param, "+", "%2b", -1)
patch.go#L66: _, _ = text.WriteString(strings.Replace(url.QueryEscape(aDiff.Text), "+", " ", -1))
patch.go#L532: line = strings.Replace(line, "+", "%2b", -1)
go.opencensus.io/plugin/ocgrpc
trace_common.go#L38: name = strings.Replace(name, "/", ".", -1)
trace_common.go#L55: name = strings.Replace(name, "/", ".", -1)
golang.org/x/net/html
parse.go#L862: d = strings.Replace(d, "\x00", "", -1)
parse.go#L1401: p.tok.Data = strings.Replace(p.tok.Data, "\x00", "", -1)
parse.go#L1764: p.addText(strings.Replace(p.tok.Data, "\x00", "", -1))
parse.go#L2139: p.tok.Data = strings.Replace(p.tok.Data, "\x00", "\ufffd", -1)
golang.org/x/pkgsite/internal/godoc/dochtml/internal/render
linkify.go#L240: prev = strings.Replace(prev, indent, "\n", -1)
linkify.go#L250: lit = strings.Replace(lit, indent, "\n", -1)
golang.org/x/pkgsite/internal/source
source.go#L359: repo = strings.Replace(repo, apacheDomain, "github.com/apache/", 1)
source.go#L363: repo = strings.Replace(repo, "/go/", "/git/r/", 1)
google.golang.org/api/googleapi
googleapi.go#L292: us = strings.Replace(us, "%7B", "{", -1)
googleapi.go#L293: us = strings.Replace(us, "%7D", "}", -1)
googleapi.go#L294: us = strings.Replace(us, "%2A", "*", -1)
google.golang.org/api/storage/v1
storage-gen.go#L76: var _ = strings.Replace
google.golang.org/api/transport/grpc
dial.go#L207: return strings.Replace(defaultEndpoint, domain, ".mtls"+domain, -1)
google.golang.org/grpc/credentials/alts
utils.go#L100: name = strings.Replace(name, " ", "", -1)
utils.go#L101: name = strings.Replace(name, "\n", "", -1)
utils.go#L102: name = strings.Replace(name, "\r", "", -1)
google.golang.org/protobuf/reflect/protoregistry
registry.go#L115: pkgName = strings.Replace(pkgName, "_", "", -1) + "pb"
gopkg.in/yaml.v2
resolve.go#L150: plain := strings.Replace(in, "_", "", -1)
net/http
client.go#L163: referer = strings.Replace(referer, auth, "", 1)
client.go#L1006: return strings.Replace(u.String(), u.User.String()+"@", u.User.Username()+":***@", 1)
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |