func bytes.HasPrefix

18 uses

	bytes (current package)
		bytes.go#L594: func HasPrefix(s, prefix []byte) bool {
		bytes.go#L877: 	if HasPrefix(s, prefix) {
		bytes.go#L1398: 	if !HasPrefix(s, prefix) {

	crypto/tls
		common.go#L1050: 		(bytes.HasPrefix(c.SessionTicketKey[:], deprecatedSessionTicketKey) || len(c.sessionTicketKeys) > 0) {
		common.go#L1068: 	} else if !bytes.HasPrefix(c.SessionTicketKey[:], deprecatedSessionTicketKey) && len(c.sessionTicketKeys) == 0 {

	crypto/x509
		x509.go#L1828: 	if bytes.HasPrefix(crlBytes, pemCRLPrefix) {

	encoding/pem
		pem.go#L172: 		if !bytes.HasPrefix(endTrailer, typeLine) ||

	github.com/refraction-networking/utls
		common.go#L1036: 		(bytes.HasPrefix(c.SessionTicketKey[:], deprecatedSessionTicketKey) || len(c.sessionTicketKeys) > 0) {
		common.go#L1054: 	} else if !bytes.HasPrefix(c.SessionTicketKey[:], deprecatedSessionTicketKey) && len(c.sessionTicketKeys) == 0 {

	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#L98: 				if !bytes.HasPrefix(rightStripped, lf) && !bytes.HasPrefix(rightStripped, crlf) &&

	net/http
		sniff.go#L203: 	if bytes.HasPrefix(data, e.sig) {