func bytes.HasPrefix
19 uses
bytes (current package)
bytes.go#L561: func HasPrefix(s, prefix []byte) bool {
bytes.go#L838: if HasPrefix(s, prefix) {
bytes.go#L1379: if !HasPrefix(s, prefix) {
crypto/tls
common.go#L877: (bytes.HasPrefix(c.SessionTicketKey[:], deprecatedSessionTicketKey) || len(c.sessionTicketKeys) > 0) {
common.go#L895: } else if !bytes.HasPrefix(c.SessionTicketKey[:], deprecatedSessionTicketKey) && len(c.sessionTicketKeys) == 0 {
crypto/x509
x509.go#L1684: if bytes.HasPrefix(crlBytes, pemCRLPrefix) {
encoding/pem
pem.go#L94: if bytes.HasPrefix(rest, pemStart[1:]) {
pem.go#L138: if len(p.Headers) == 0 && bytes.HasPrefix(rest, pemEnd[1:]) {
pem.go#L160: if !bytes.HasPrefix(endTrailer, typeLine) ||
mime/multipart
multipart.go#L242: if bytes.HasPrefix(buf, dashBoundary) {
multipart.go#L252: if bytes.HasPrefix(dashBoundary, buf) {
multipart.go#L268: if bytes.HasPrefix(nlDashBoundary, buf) {
multipart.go#L277: if i >= 0 && bytes.HasPrefix(nlDashBoundary, buf[i:]) {
multipart.go#L448: if !bytes.HasPrefix(line, r.dashBoundaryDash) {
multipart.go#L463: if !bytes.HasPrefix(line, r.dashBoundary) {
mime/quotedprintable
reader.go#L97: if !bytes.HasPrefix(rightStripped, lf) && !bytes.HasPrefix(rightStripped, crlf) &&
net/http
sniff.go#L203: if bytes.HasPrefix(data, e.sig) {
regexp
regexp.go#L454: return bytes.HasPrefix(i.str, re.prefixBytes)
|
The pages are generated with Golds v0.6.7. (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 @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |