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)