func bytes.HasPrefix

96 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) ||

	github.com/go-git/go-git/v5/plumbing/protocol/packp
		advrefs_decode.go#L162: 	if !bytes.HasPrefix(p.line, noHeadMark) {
		advrefs_decode.go#L179: 	if !bytes.HasPrefix(l.line, sp) {
		advrefs_decode.go#L218: 	if bytes.HasPrefix(p.line, shallow) {
		advrefs_decode.go#L257: 	if !bytes.HasPrefix(p.line, shallow) {
		shallowupd.go#L31: 		case bytes.HasPrefix(line, shallow):
		shallowupd.go#L33: 		case bytes.HasPrefix(line, unshallow):
		ulreq_decode.go#L84: 	if !bytes.HasPrefix(d.line, want) {
		ulreq_decode.go#L131: 	if bytes.HasPrefix(d.line, shallow) {
		ulreq_decode.go#L135: 	if bytes.HasPrefix(d.line, deepen) {
		ulreq_decode.go#L143: 	if !bytes.HasPrefix(d.line, want) {
		ulreq_decode.go#L160: 	if bytes.HasPrefix(d.line, deepen) {
		ulreq_decode.go#L168: 	if !bytes.HasPrefix(d.line, shallow) {
		ulreq_decode.go#L189: 	if bytes.HasPrefix(d.line, deepenCommits) {
		ulreq_decode.go#L193: 	if bytes.HasPrefix(d.line, deepenSince) {
		ulreq_decode.go#L197: 	if bytes.HasPrefix(d.line, deepenReference) {
		updreq_decode.go#L128: 	if !bytes.HasPrefix(b, shallowNoSp) {

	github.com/google/safehtml/template
		escape.go#L611: 				if s[j] == '<' && !bytes.HasPrefix(bytes.ToUpper(s[j:]), doctypeBytes) {

	github.com/jackc/pgconn
		auth_scram.go#L162: 	if !bytes.HasPrefix(buf, []byte("r=")) {
		auth_scram.go#L174: 	if !bytes.HasPrefix(buf, []byte("s=")) {
		auth_scram.go#L186: 	if !bytes.HasPrefix(buf, []byte("i=")) {
		auth_scram.go#L203: 	if !bytes.HasPrefix(sc.clientAndServerNonce, sc.clientNonce) {
		auth_scram.go#L226: 	if !bytes.HasPrefix(serverFinalMessage, []byte("v=")) {

	github.com/lib/pq
		array.go#L696: 				if bytes.HasPrefix(src[i:], del) || src[i] == '}' {
		array.go#L712: 		if bytes.HasPrefix(src[i:], del) && depth > 0 {

	github.com/lib/pq/scram
		scram.go#L161: 	if !bytes.HasPrefix(fields[0], []byte("r=")) || len(fields[0]) < 2 {
		scram.go#L164: 	if !bytes.HasPrefix(fields[1], []byte("s=")) || len(fields[1]) < 6 {
		scram.go#L167: 	if !bytes.HasPrefix(fields[2], []byte("i=")) || len(fields[2]) < 6 {
		scram.go#L172: 	if !bytes.HasPrefix(c.serverNonce, c.clientNonce) {
		scram.go#L202: 		isv = bytes.HasPrefix(fields[0], []byte("v="))
		scram.go#L203: 		ise = bytes.HasPrefix(fields[0], []byte("e="))

	github.com/russross/blackfriday/v2
		block.go#L302: 		if !bytes.HasPrefix(b, []byte("%")) {
		block.go#L495: 	if !bytes.HasPrefix(data, closetag) {
		html.go#L236: 	if bytes.HasPrefix(link, []byte("./")) {
		html.go#L241: 	if bytes.HasPrefix(link, []byte("../")) {
		html.go#L304: 	return bytes.HasPrefix(link, []byte("mailto:"))
		inline.go#L610: 	if bytes.HasPrefix(link, []byte("mailto://")) {
		inline.go#L612: 	} else if bytes.HasPrefix(link, []byte("mailto:")) {
		smartypants.go#L223: 	if bytes.HasPrefix(text, []byte(""")) {
		smartypants.go#L233: 	if bytes.HasPrefix(text, []byte("�")) {

	github.com/yuin/goldmark/extension
		linkify.go#L187: 		if bytes.HasPrefix(line, protoHTTP) || bytes.HasPrefix(line, protoHTTPS) || bytes.HasPrefix(line, protoFTP) {
		linkify.go#L192: 			if bytes.HasPrefix(line, prefix) {
		linkify.go#L198: 	if m == nil && bytes.HasPrefix(line, domainWWW) {

	github.com/yuin/goldmark/parser
		raw_html.go#L35: 	if bytes.HasPrefix(line, []byte("