func strings.HasPrefix
53 uses
strings (current package)
replace.go#L246: } else if node.prefix != "" && HasPrefix(s, node.prefix) {
search.go#L73: if HasPrefix(pattern, pattern[i+1:]) {
strings.go#L461: func HasPrefix(s, prefix string) bool {
strings.go#L584: case n <= len(repeatedSpaces) && HasPrefix(repeatedSpaces, s):
strings.go#L586: case n <= len(repeatedDashes) && HasPrefix(repeatedDashes, s):
strings.go#L588: case n <= len(repeatedZeroes) && HasPrefix(repeatedZeroes, s):
strings.go#L590: case n <= len(repeatedEquals) && HasPrefix(repeatedEquals, s):
strings.go#L592: case n <= len(repeatedTabs) && HasPrefix(repeatedTabs, s):
crypto/x509
verify.go#L441: if _, err := netip.ParseAddr(host); err == nil || (strings.HasPrefix(host, "[") && strings.HasSuffix(host, "]")) {
encoding/asn1
common.go#L118: case strings.HasPrefix(part, "default:"):
common.go#L124: case strings.HasPrefix(part, "tag:"):
github.com/oapi-codegen/runtime
bindform.go#L57: if strings.HasPrefix(encoding.ContentType, jsonContentType) {
bindform.go#L110: if strings.HasPrefix(encoding.ContentType, jsonContentType) {
bindform.go#L210: if strings.HasPrefix(k, name) {
bindform.go#L221: if strings.HasPrefix(k, name) {
bindform.go#L251: if strings.HasPrefix(k, name+"[") {
bindform.go#L267: if strings.HasPrefix(k, name+"[") {
bindparam.go#L198: if !strings.HasPrefix(value, prefix) {
deepobject.go#L133: if strings.HasPrefix(pName, searchStr) {
mime
encodedword.go#L201: if len(word) < 8 || !strings.HasPrefix(word, "=?") || !strings.HasSuffix(word, "?=") || strings.Count(word, "?") != 4 {
mediatype.go#L111: if !strings.HasPrefix(rest, "/") {
mediatype.go#L323: if !strings.HasPrefix(rest, ";") {
mediatype.go#L336: if !strings.HasPrefix(rest, "=") {
type.go#L161: if !strings.HasPrefix(ext, ".") {
type.go#L173: if strings.HasPrefix(mimeType, "text/") && param["charset"] == "" {
net/http
fs.go#L434: if strings.HasPrefix(s, "W/") {
fs.go#L982: if !strings.HasPrefix(upath, "/") {
fs.go#L1012: if !strings.HasPrefix(s, b) {
h2_bundle.go#L2957: isPseudo := strings.HasPrefix(hf.Name, ":")
h2_bundle.go#L6626: if !strings.HasPrefix(k, http2TrailerPrefix) {
h2_bundle.go#L6915: if !strings.HasPrefix(target, "/") {
h2_bundle.go#L6929: if strings.HasPrefix(k, ":") {
h2_bundle.go#L7718: if strings.HasPrefix(host, "[") && strings.HasSuffix(host, "]") {
request.go#L809: if !strings.HasPrefix(host, "[") {
request.go#L833: if !strings.HasPrefix(vers, "HTTP/") {
request.go#L1127: justAuthority := req.Method == "CONNECT" && !strings.HasPrefix(rawurl, "/")
servemux121.go#L169: if strings.HasPrefix(path, e.pattern) {
server.go#L1183: if !strings.HasPrefix(frame.Function, "net/http.") {
server.go#L1341: if strings.HasPrefix(k, TrailerPrefix) {
server.go#L2536: if len(p) == len(np)+1 && strings.HasPrefix(p, np) {
net/url
url.go#L539: if !strings.HasPrefix(rest, "/") {
url.go#L561: if (url.Scheme != "" || !viaRequest && !strings.HasPrefix(rest, "///")) && strings.HasPrefix(rest, "//") {
url.go#L571: } else if url.Scheme != "" && strings.HasPrefix(rest, "/") {
url.go#L625: if strings.HasPrefix(host, "[") {
url.go#L1173: if strings.HasPrefix(result, "//") {
url.go#L1211: if strings.HasPrefix(host, "[") && strings.HasSuffix(host, "]") {
url.go#L1240: if !strings.HasPrefix(elem[0], "/") {
path/filepath
path_unix.go#L18: return strings.HasPrefix(p, prefix)
regexp
regexp.go#L401: return strings.HasPrefix(i.str, re.prefix)
vendor/golang.org/x/net/http/httpguts
guts.go#L22: if strings.HasPrefix(name, "If-") || badTrailer[name] {
vendor/golang.org/x/net/http/httpproxy
proxy.go#L261: if strings.HasPrefix(phost, "*.") {
vendor/golang.org/x/net/idna
idna10.0.0.go#L364: if strings.HasPrefix(label, acePrefix) {
 |
The pages are generated with Golds v0.7.6. (GOOS=linux 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 @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |