func bytes.HasPrefix
20 uses
bytes (current package)
bytes.go#L537: func HasPrefix(s, prefix []byte) bool {
bytes.go#L799: if HasPrefix(s, prefix) {
crypto/tls
common.go#L795: (bytes.HasPrefix(c.SessionTicketKey[:], deprecatedSessionTicketKey) || len(c.sessionTicketKeys) > 0) {
common.go#L813: } else if !bytes.HasPrefix(c.SessionTicketKey[:], deprecatedSessionTicketKey) && len(c.sessionTicketKeys) == 0 {
crypto/x509
x509.go#L2267: if bytes.HasPrefix(crlBytes, pemCRLPrefix) {
encoding/pem
pem.go#L90: if bytes.HasPrefix(data, pemStart[1:]) {
pem.go#L134: if len(p.Headers) == 0 && bytes.HasPrefix(rest, pemEnd[1:]) {
pem.go#L156: if !bytes.HasPrefix(endTrailer, typeLine) ||
mime/multipart
multipart.go#L213: if bytes.HasPrefix(buf, dashBoundary) {
multipart.go#L223: if bytes.HasPrefix(dashBoundary, buf) {
multipart.go#L239: if bytes.HasPrefix(nlDashBoundary, buf) {
multipart.go#L248: if i >= 0 && bytes.HasPrefix(nlDashBoundary, buf[i:]) {
multipart.go#L382: if !bytes.HasPrefix(line, mr.dashBoundaryDash) {
multipart.go#L397: if !bytes.HasPrefix(line, mr.dashBoundary) {
mime/quotedprintable
reader.go#L97: if !bytes.HasPrefix(rightStripped, lf) && !bytes.HasPrefix(rightStripped, crlf) &&
net/http
sniff.go#L208: if bytes.HasPrefix(data, e.sig) {
regexp
regexp.go#L446: return bytes.HasPrefix(i.str, re.prefixBytes)
src.elv.sh/pkg/store
cmd.go#L110: if bytes.HasPrefix(v, p) {
cmd.go#L141: if bytes.HasPrefix(v, p) {