func bytes.Equal
125 uses
bytes (current package)
bytes.go#L18: func Equal(a, b []byte) bool {
bytes.go#L112: if Equal(s, sep) {
bytes.go#L126: if h == hashss && Equal(s[last:], sep) {
bytes.go#L133: if h == hashss && Equal(s[i:i+n], sep) {
bytes.go#L538: return len(s) >= len(prefix) && Equal(s[0:len(prefix)], prefix)
bytes.go#L543: return len(s) >= len(suffix) && Equal(s[len(s)-len(suffix):], suffix)
bytes.go#L1099: if Equal(sep, s) {
bytes.go#L1125: if s[i+1] == c1 && Equal(s[i:i+n], sep) {
bytes.go#L1154: if s[i+1] == c1 && Equal(s[i:i+n], sep) {
crypto/ed25519
ed25519.go#L52: return bytes.Equal(pub, xx)
ed25519.go#L71: return bytes.Equal(priv, xx)
ed25519.go#L245: return bytes.Equal(sig[:32], checkR[:])
crypto/rsa
pss.go#L200: if !bytes.Equal(h0, h) { // TODO: constant time?
crypto/tls
common.go#L1242: if bytes.Equal(x509Cert.RawIssuer, ca) {
handshake_client.go#L513: if !bytes.Equal(c.peerCertificates[0].Raw, certMsg.certificates[0]) {
handshake_client.go#L671: bytes.Equal(hs.serverHello.sessionId, hs.hello.sessionId)
handshake_client.go#L698: if !bytes.Equal(hs.serverHello.secureRenegotiation, expectedSecureRenegotiation[:]) {
handshake_client_tls13.go#L61: if bytes.Equal(hs.serverHello.random, helloRetryRequestRandom) {
handshake_client_tls13.go#L136: if !bytes.Equal(hs.hello.sessionId, hs.serverHello.sessionId) {
handshake_client_tls13.go#L288: if bytes.Equal(hs.serverHello.random, helloRetryRequestRandom) {
handshake_server_tls13.go#L513: !bytes.Equal(ch.random, ch1.random) ||
handshake_server_tls13.go#L514: !bytes.Equal(ch.sessionId, ch1.sessionId) ||
handshake_server_tls13.go#L515: !bytes.Equal(ch.compressionMethods, ch1.compressionMethods) ||
handshake_server_tls13.go#L518: !bytes.Equal(ch.supportedPoints, ch1.supportedPoints) ||
handshake_server_tls13.go#L520: !bytes.Equal(ch.sessionTicket, ch1.sessionTicket) ||
handshake_server_tls13.go#L522: !bytes.Equal(ch.secureRenegotiation, ch1.secureRenegotiation) ||
handshake_server_tls13.go#L524: !bytes.Equal(ch.cookie, ch1.cookie) ||
handshake_server_tls13.go#L525: !bytes.Equal(ch.pskModes, ch1.pskModes)
ticket.go#L159: if bytes.Equal(keyName, candidateKey.keyName[:]) {
tls.go#L357: if !bytes.Equal(priv.Public().(ed25519.PublicKey), pub) {
crypto/x509
cert_pool.go#L137: kidMatch := bytes.Equal(candidate.SubjectKeyId, cert.AuthorityKeyId)
root_darwin.go#L129: return bytes.Equal(cert.RawSubject, cert.RawIssuer)
verify.go#L586: if !bytes.Equal(child.RawIssuer, c.RawSubject) {
x509.go#L416: if (len(params.Hash.Parameters.FullBytes) != 0 && !bytes.Equal(params.Hash.Parameters.FullBytes, asn1.NullBytes)) ||
x509.go#L419: (len(mgf1HashFunc.Parameters.FullBytes) != 0 && !bytes.Equal(mgf1HashFunc.Parameters.FullBytes, asn1.NullBytes)) ||
x509.go#L754: return bytes.Equal(c.Raw, other.Raw)
x509.go#L923: if !bytes.Equal(keyData.Algorithm.Parameters.FullBytes, asn1.NullBytes) {
x509.go#L2175: if !bytes.Equal(asn1Issuer, asn1Subject) && len(parent.SubjectKeyId) > 0 {
x509.go#L2189: extensions, err := buildCertExtensions(template, bytes.Equal(asn1Subject, emptyASN1Subject), authorityKeyId, subjectKeyId)
encoding/xml
marshal.go#L269: if n := 1 + i - len(endComment); n >= 0 && bytes.Equal(dir[n:i+1], endComment) {
marshal.go#L282: if i+len(begComment) < len(dir) && bytes.Equal(dir[i:i+len(begComment)], begComment) {
github.com/evanw/esbuild/internal/bundler
bundler.go#L1600: if bytes.Equal(contents, outputFile.Contents) {
linker.go#L47: return bytes.Equal(bs.entries, other.entries)
github.com/ghodss/yaml
yaml.go#L182: if bytes.Equal(ff.nameBytes, keyBytes) {
github.com/go-git/go-git/v5
worktree_status.go#L253: if bytes.Equal(hashA, emptyNoderHash) || bytes.Equal(hashB, emptyNoderHash) {
worktree_status.go#L257: return bytes.Equal(hashA, hashB)
github.com/go-git/go-git/v5/plumbing/format/idxfile
decoder.go#L65: if !bytes.Equal(h, idxHeader) {
github.com/go-git/go-git/v5/plumbing/format/index
decoder.go#L244: case bytes.Equal(header, treeExtSignature):
decoder.go#L255: case bytes.Equal(header, resolveUndoExtSignature):
decoder.go#L266: case bytes.Equal(header, endOfIndexEntryExtSignature):
decoder.go#L302: if !bytes.Equal(h[:], expected) {
decoder.go#L315: if !bytes.Equal(s, indexSignature) {
github.com/go-git/go-git/v5/plumbing/format/packfile
scanner.go#L129: return bytes.Equal(sig, signature)
github.com/go-git/go-git/v5/plumbing/format/pktline
encoder.go#L68: if bytes.Equal(p, Flush) {
github.com/go-git/go-git/v5/plumbing/object
difftree.go#L73: return bytes.Equal(a.Hash(), b.Hash())
github.com/go-git/go-git/v5/plumbing/protocol/packp
advrefs_decode.go#L193: if bytes.Equal(ref, []byte(head)) {
advrefs_encode.go#L82: if bytes.Equal(p, pktline.Flush) {
shallowupd.go#L35: case bytes.Equal(line, pktline.Flush):
srvresp.go#L80: if bytes.Equal(b, c) {
srvresp.go#L93: if bytes.Equal(line[0:3], ack) {
srvresp.go#L97: if bytes.Equal(line[0:3], nak) {
ulreq_encode.go#L73: if bytes.Equal(last[:], w[:]) {
ulreq_encode.go#L93: if bytes.Equal(last[:], s[:]) {
updreq_decode.go#L153: if bytes.Equal(b, pktline.Flush) {
uppackreq.go#L80: if bytes.Equal(last[:], have[:]) {
github.com/google/go-cmp/cmp
report_text.go#L351: return bytes.Equal([]byte(s1), []byte(s2))
github.com/google/safehtml/template
transition.go#L38: } else if i+4 <= len(s) && bytes.Equal(commentStart, s[i:i+4]) {
github.com/lib/pq
array.go#L701: if bytes.Equal(elem, []byte("NULL")) {
encode.go#L513: if len(s) >= 2 && bytes.Equal(s[:2], []byte("\\x")) {
github.com/lib/pq/scram
scram.go#L210: if !bytes.Equal(c.serverSignature(), fields[0][2:]) {
github.com/russross/blackfriday/v2
inline.go#L725: if bytes.Equal(ent, []byte("&")) {
inline.go#L910: if len(link) >= len(path) && bytes.Equal(link[:len(path)], path) {
inline.go#L922: if len(link) > len(prefix) && bytes.Equal(bytes.ToLower(link[:len(prefix)]), prefix) && isalnum(link[len(prefix)]) {
github.com/yuin/goldmark/ast
ast.go#L392: if bytes.Equal(a.Name, name) {
ast.go#L413: if bytes.Equal(a.Name, name) {
github.com/yuin/goldmark/extension
footnote.go#L156: if bytes.Equal(d.Ref, value) {
github.com/yuin/goldmark/parser
attribute.go#L27: if bytes.Equal(a.Name, name) {
attribute.go#L36: if bytes.Equal(a.Name, name) {
attribute.go#L66: if bytes.Equal(attr.Name, attrNameClass) {
attribute.go#L309: if bytes.Equal(value, bytesTrue) {
attribute.go#L312: if bytes.Equal(value, bytesFalse) {
attribute.go#L315: if bytes.Equal(value, bytesNull) {
html_block.go#L132: isCloseTag := match[2] > -1 && bytes.Equal(line[match[2]:match[3]], []byte("/"))
github.com/yuin/goldmark/util
util.go#L987: if bytes.Equal(element, b) {
go.opentelemetry.io/otel/api/trace
span_context.go#L58: return !bytes.Equal(t[:], nilTraceID[:])
span_context.go#L81: return !bytes.Equal(s[:], nilSpanID[:])
go/build
build.go#L1588: if !inSlashStar && bytes.Equal(line, binaryOnlyComment) {
golang.org/x/crypto/openpgp/packet
private_key.go#L260: if !bytes.Equal(sum, data[len(data)-sha1.Size:]) {
public_key.go#L85: if bytes.Equal(f.oid, oidCurveP256) {
public_key.go#L87: } else if bytes.Equal(f.oid, oidCurveP384) {
public_key.go#L89: } else if bytes.Equal(f.oid, oidCurveP521) {
golang.org/x/crypto/ssh
client.go#L257: if !bytes.Equal(key.Marshal(), f.key.Marshal()) {
client_auth.go#L305: if msg.Algo != algoname || !bytes.Equal(msg.PubKey, pubKey) {
server.go#L158: if k.user == user && bytes.Equal(k.pubKeyData, pubKeyData) {
golang.org/x/crypto/ssh/agent
keyring.go#L58: if bytes.Equal(r.keys[i].signer.PublicKey().Marshal(), want) {
keyring.go#L198: if bytes.Equal(k.signer.PublicKey().Marshal(), wanted) {
golang.org/x/crypto/ssh/knownhosts
knownhosts.go#L142: return bytes.Equal(a.Marshal(), b.Marshal())
knownhosts.go#L539: return bytes.Equal(hashHost(Normalize(a.String()), h.salt), h.hash)
golang.org/x/net/http2
server.go#L967: } else if !bytes.Equal(buf, clientPreface) {
golang.org/x/pkgsite/internal/frontend
goldmark.go#L242: if bytes.Equal(n.Text(reader.Source()), linkHeadingBytes) {
golang.org/x/text/internal/language
parse.go#L531: if !bytes.Equal(keys[k][:2], keys[i][:2]) {
parse.go#L534: } else if !bytes.Equal(keys[k], keys[i]) {
golang.org/x/text/transform
transform.go#L607: if !bytes.Equal(dst[:nDst], src[:nSrc]) {
google.golang.org/grpc/credentials/alts/internal/conn
aeadrekey.go#L92: if s.gcmAEAD != nil && bytes.Equal(newKdfCounter, s.kdfCounter) {
google.golang.org/grpc/internal/transport
http2_server.go#L270: if !bytes.Equal(preface, clientPreface) {
google.golang.org/protobuf/internal/encoding/json
decode_token.go#L190: bytes.Equal(x.raw, y.raw) &&
google.golang.org/protobuf/internal/encoding/text
decode_token.go#L371: bytes.Equal(x.raw, y.raw) &&
google.golang.org/protobuf/internal/filedesc
desc.go#L607: if len(dv.bytes) > 0 && !bytes.Equal(dv.bytes, dv.val.Bytes()) {
google.golang.org/protobuf/proto
equal.go#L118: return bytes.Equal(x.Bytes(), y.Bytes())
equal.go#L137: if bytes.Equal([]byte(x), []byte(y)) {
gopkg.in/yaml.v2
emitterc.go#L176: if bytes.Equal(value.handle, emitter.tag_directives[i].handle) {
parserc.go#L437: if bytes.Equal(parser.tag_directives[i].handle, tag_handle) {
parserc.go#L1077: if bytes.Equal(value.handle, parser.tag_directives[i].handle) {
scannerc.go#L1520: if bytes.Equal(name, []byte("YAML")) {
scannerc.go#L1538: } else if bytes.Equal(name, []byte("TAG")) {
html/template
transition.go#L54: } else if i+4 <= len(s) && bytes.Equal(commentStart, s[i:i+4]) {
mime/multipart
multipart.go#L369: if bytes.Equal(line, r.nl) {
multipart.go#L387: return len(rest) == 0 || bytes.Equal(rest, mr.nl)
multipart.go#L410: return bytes.Equal(rest, mr.nl)
net/http
h2_bundle.go#L4538: } else if !bytes.Equal(buf, http2clientPreface) {
sniff.go#L280: if !bytes.Equal(data[4:8], mp4ftype) {
sniff.go#L288: if bytes.Equal(data[st:st+3], mp4) {
transfer.go#L911: if bytes.Equal(buf, singleCRLF) {
vendor/golang.org/x/text/transform
transform.go#L607: if !bytes.Equal(dst[:nDst], src[:nSrc]) {
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin 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. |