func regexp.QuoteMeta
8 uses
regexp (current package)
regexp.go#L720: func QuoteMeta(s string) string {
github.com/google/pprof/profile
prune.go#L30: quotedNames = append(quotedNames, regexp.QuoteMeta(name))
golang.org/x/pkgsite/internal/testing/htmlcheck
htmlcheck.go#L144: return HasText("^" + regexp.QuoteMeta(want) + "$")
htmlcheck.go#L151: re := strings.Join(strings.Fields(strings.TrimSpace(regexp.QuoteMeta(want))), `\s*`)
htmlcheck.go#L192: return HasAttr("href", "^"+regexp.QuoteMeta(val)+"$")
golang.org/x/pkgsite/internal/testing/pagecheck
pagecheck.go#L190: text(regexp.QuoteMeta(ltype)),
pagecheck.go#L196: text(regexp.QuoteMeta(bodySubstring)))),
pagecheck.go#L213: attr("class", `\b`+regexp.QuoteMeta(class)+`\b`), // the badge has this class too
![]() |
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. |