func slices.Contains
38 uses
slices (current package)
slices.go#L117: func Contains[S ~[]E, E comparable](s S, v E) bool {
crypto/tls
common.go#L1190: return !slices.Contains(c.CipherSuites, id)
common.go#L1195: return !slices.Contains(allowedCipherSuitesFIPS, id)
common.go#L1226: if fips140tls.Required() && !slices.Contains(allowedSupportedVersionsFIPS, v) {
common.go#L1274: return !slices.Contains(allowedCurvePreferencesFIPS, x)
common.go#L1279: return !slices.Contains(c.CurvePreferences, x)
common.go#L1289: return slices.Contains(c.curvePreferences(version), curve)
common.go#L1297: if slices.Contains(peerVersions, v) {
common.go#L1765: if fips140tls.Required() && !slices.Contains(allowedSignatureAlgorithmsFIPS, s) {
common.go#L1806: return slices.Contains(supportedSignatureAlgorithms, sigAlg)
handshake_client.go#L157: if len(hello.keyShares) == 2 && !slices.Contains(hello.supportedCurves, hello.keyShares[1].group) {
handshake_client_tls13.go#L312: if !slices.Contains(hello.supportedCurves, curveID) {
handshake_server_tls13.go#L211: return !slices.Contains(hs.clientHello.supportedCurves, group)
handshake_server_tls13.go#L949: return slices.Contains(hs.clientHello.pskModes, pskModeDHE)
key_agreement.go#L304: if !slices.Contains(clientHello.supportedCurves, ka.curveID) {
github.com/jackc/pgx/v5/pgconn
auth_scram.go#L49: serverHasPlus := slices.Contains(sc.serverAuthMechanisms, scramSHA256PlusName)
auth_scram.go#L191: if !slices.Contains(sc.serverAuthMechanisms, scramSHA256Name) {
go.pact.im/x/plumb/internal/discover
discover.go#L61: if slices.Contains(names, d.Name) {
go/build
build.go#L1976: return slices.Contains(ctxt.BuildTags, name) || slices.Contains(ctxt.ToolTags, name) ||
build.go#L1977: slices.Contains(ctxt.ReleaseTags, name)
go/types
decl.go#L489: if !slices.Contains(lhs, obj) {
infer.go#L42: assert(inferred == nil || len(inferred) == len(tparams) && !slices.Contains(inferred, nil))
infer.go#L61: if len(targs) == n && !slices.Contains(targs, nil) {
labels.go#L113: return varDeclPos.IsValid() && slices.Contains(badJumps, jmp)
golang.org/x/net/http2
frame.go#L1658: if slices.Contains([]string{"via", "forwarded", "x-forwarded-for"}, field.Name) {
golang.org/x/net/internal/httpsfv
httpsfv.go#L41: return slices.Contains([]byte{'!', '#', '$', '%', '&', '\'', '*', '+', '-', '.', '^', '_', '`', '|', '~'}, b)
httpsfv.go#L311: if !isLCAlpha(ch) && !isDigit(ch) && !slices.Contains([]byte("_-.*"), ch) {
httpsfv.go#L448: if !isTChar(ch) && !slices.Contains([]byte(":/"), ch) {
httpsfv.go#L478: if ch := s[i]; !isAlpha(ch) && !isDigit(ch) && !slices.Contains([]byte("+/="), ch) {
httpsfv.go#L529: if slices.Contains([]byte(consumed), '.') {
golang.org/x/sys/unix
syscall_linux.go#L2234: return slices.Contains(groups, gid)
golang.org/x/tools/internal/event/label
label.go#L147: if slices.Contains(f.keys, l.Key()) {
golang.org/x/tools/internal/typesinternal
isnamed.go#L24: slices.Contains(names, tname.Name())
isnamed.go#L52: slices.Contains(names, f.Name())
isnamed.go#L67: slices.Contains(names, fn.Name())
net/http
server.go#L3387: return slices.Contains(s.TLSConfig.NextProtos, http2NextProtoTLS)
syscall
syscall_linux.go#L138: return slices.Contains(groups, gid)