func strings.HasPrefix
54 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#L520: func HasPrefix(s, prefix string) bool {
strings.go#L644: case n <= len(repeatedSpaces) && HasPrefix(repeatedSpaces, s):
strings.go#L646: case n <= len(repeatedDashes) && HasPrefix(repeatedDashes, s):
strings.go#L648: case n <= len(repeatedZeroes) && HasPrefix(repeatedZeroes, s):
strings.go#L650: case n <= len(repeatedEquals) && HasPrefix(repeatedEquals, s):
strings.go#L652: case n <= len(repeatedTabs) && HasPrefix(repeatedTabs, s):
crypto/x509
constraints.go#L595: 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/andybalholm/brotli
http.go#L77: if strings.HasPrefix(s, ";") {
http.go#L79: if !strings.HasPrefix(s, "q=") {
http.go#L89: if !strings.HasPrefix(s, ",") {
http.go#L131: if !strings.HasPrefix(s, ".") {
github.com/coder/websocket
accept.go#L311: if strings.HasPrefix(p, "client_max_window_bits=") {
dial.go#L308: if strings.HasPrefix(p, "server_max_window_bits=") {
github.com/gotd/td/telegram/internal/version
version.go#L28: if strings.HasPrefix(d.Path, pkg) {
golang.org/x/net/proxy
per_host.go#L117: if strings.HasPrefix(host, "*.") {
per_host.go#L143: if !strings.HasPrefix(zone, ".") {
mime
encodedword.go#L201: if len(word) < 8 || !strings.HasPrefix(word, "=?") || !strings.HasSuffix(word, "?=") || strings.Count(word, "?") != 4 {
type.go#L234: if !strings.HasPrefix(ext, ".") {
type.go#L246: if strings.HasPrefix(mimeType, "text/") && param["charset"] == "" {
net/http
fs.go#L439: if strings.HasPrefix(s, "W/") {
fs.go#L990: if !strings.HasPrefix(upath, "/") {
fs.go#L1020: if !strings.HasPrefix(s, b) {
h2_bundle.go#L3177: isPseudo := strings.HasPrefix(hf.Name, ":")
h2_bundle.go#L6789: if !strings.HasPrefix(k, http2TrailerPrefix) {
h2_bundle.go#L7083: if !strings.HasPrefix(target, "/") {
h2_bundle.go#L7097: if strings.HasPrefix(k, ":") {
h2_bundle.go#L7873: if strings.HasPrefix(host, "[") && strings.HasSuffix(host, "]") {
request.go#L800: if !strings.HasPrefix(host, "[") {
request.go#L824: if !strings.HasPrefix(vers, "HTTP/") {
request.go#L1118: justAuthority := req.Method == "CONNECT" && !strings.HasPrefix(rawurl, "/")
servemux121.go#L169: if strings.HasPrefix(path, e.pattern) {
server.go#L1139: if !strings.HasPrefix(frame.Function, "net/http.") {
server.go#L1297: if strings.HasPrefix(k, TrailerPrefix) {
server.go#L2605: if len(p) == len(np)+1 && strings.HasPrefix(p, np) {
net/url
url.go#L463: if !strings.HasPrefix(rest, "/") {
url.go#L485: if (url.Scheme != "" || !viaRequest && !strings.HasPrefix(rest, "///")) && strings.HasPrefix(rest, "//") {
url.go#L495: } else if url.Scheme != "" && strings.HasPrefix(rest, "/") {
url.go#L1169: if strings.HasPrefix(result, "//") {
url.go#L1207: if strings.HasPrefix(host, "[") && strings.HasSuffix(host, "]") {
url.go#L1246: if !strings.HasPrefix(elem[0], "/") {
path/filepath
path_unix.go#L18: return strings.HasPrefix(p, prefix)
runtime/debug
mod.go#L206: case strings.HasPrefix(line, pathLine):
mod.go#L209: case strings.HasPrefix(line, modLine):
mod.go#L216: case strings.HasPrefix(line, depLine):
mod.go#L224: case strings.HasPrefix(line, repLine):
mod.go#L238: case strings.HasPrefix(line, buildLine):
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.8.4. (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. |