func strings.ReplaceAll
36 uses
strings (current package)
strings.go#L963: func ReplaceAll(s, old, new string) string {
archive/zip
reader.go#L662: name = strings.ReplaceAll(name, `\`, `/`)
flag
flag.go#L525: s += strings.ReplaceAll(usage, "\n", "\n \t")
github.com/evanw/esbuild/internal/bundler
bundler.go#L515: return strings.ReplaceAll(mimeType, "; ", ";")
bundler.go#L1269: relPath = strings.ReplaceAll(relPath, "\\", "/")
linker.go#L785: relPath = strings.ReplaceAll(relPath, "\\", "/")
linker.go#L2742: relDir = strings.ReplaceAll(relDir, "\\", "/")
linker.go#L3888: path = strings.ReplaceAll(path, "\r", "\\r")
linker.go#L3889: path = strings.ReplaceAll(path, "\n", "\\n")
linker.go#L3890: path = strings.ReplaceAll(path, "\u2028", "\\u2028")
linker.go#L3891: path = strings.ReplaceAll(path, "\u2029", "\\u2029")
linker.go#L4521: item.prettyPath = strings.ReplaceAll(relPath, "\\", "/")
github.com/evanw/esbuild/internal/fs
filepath.go#L339: return strings.ReplaceAll(path, "/", "\\")
github.com/evanw/esbuild/internal/resolver
resolver.go#L571: path.Text = strings.ReplaceAll(path.Text, "\\", "/")
github.com/evanw/esbuild/pkg/api
api_impl.go#L33: template = "./" + strings.ReplaceAll(template, "\\", "/")
serve_other.go#L74: text = strings.ReplaceAll(text, "&", "&")
serve_other.go#L75: text = strings.ReplaceAll(text, "<", "<")
serve_other.go#L76: text = strings.ReplaceAll(text, ">", ">")
serve_other.go#L82: text = strings.ReplaceAll(text, "\"", """)
serve_other.go#L83: text = strings.ReplaceAll(text, "'", "'")
serve_other.go#L323: relPath = strings.ReplaceAll(relPath, "\\", "/")
serve_other.go#L404: return strings.ReplaceAll(relPath, "\\", "/")
serve_other.go#L468: relPath = strings.ReplaceAll(relPath, "\\", "/") // Fix paths on Windows
github.com/jackc/pgx/v4
conn.go#L88: s := strings.ReplaceAll(ident[i], string([]byte{0}), "")
conn.go#L89: parts[i] = `"` + strings.ReplaceAll(s, `"`, `""`) + `"`
conn.go#L357: return `"` + strings.ReplaceAll(s, `"`, `""`) + `"`
github.com/jackc/pgx/v4/internal/sanitize
sanitize.go#L85: return "'" + strings.ReplaceAll(str, "'", "''") + "'"
golang.org/x/pkgsite/devtools/cmd/css
main.go#L120: contentsToWrite += strings.ReplaceAll(p, githubREADMEClass, discoveryREADMEClass)
main.go#L146: return strings.ReplaceAll(property, k, v)
golang.org/x/pkgsite/internal/proxy
test_helper.go#L82: modulePath = strings.ReplaceAll(modulePath, ":", "/")
html/template
js.go#L174: return fmt.Sprintf(" /* %s */null ", strings.ReplaceAll(err.Error(), "*/", "* /"))
url.go#L159: return strings.ReplaceAll(s, ",", "%2c")
net/http/internal
testcert.go#L45: func testingKey(s string) string { return strings.ReplaceAll(s, "TESTING KEY", "PRIVATE KEY") }
path/filepath
path.go#L170: return strings.ReplaceAll(path, string(Separator), "/")
path.go#L180: return strings.ReplaceAll(path, "/", string(Separator))
text/template
exec.go#L104: return strings.ReplaceAll(str, "%", "%%")
 |
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. |