func slices.Clone
25 uses
slices (current package)
slices.go#L348: func Clone[S ~[]E, E any](s S) S {
crypto/tls
common.go#L1116: cipherSuites := slices.Clone(c.CipherSuites)
common.go#L1188: curvePreferences = slices.Clone(defaultCurvePreferencesFIPS)
defaults.go#L50: suites := slices.Clone(cipherSuitesPreferenceOrder)
handshake_messages.go#L688: original: slices.Clone(m.original),
handshake_messages.go#L690: random: slices.Clone(m.random),
handshake_messages.go#L691: sessionId: slices.Clone(m.sessionId),
handshake_messages.go#L692: cipherSuites: slices.Clone(m.cipherSuites),
handshake_messages.go#L693: compressionMethods: slices.Clone(m.compressionMethods),
handshake_messages.go#L696: supportedCurves: slices.Clone(m.supportedCurves),
handshake_messages.go#L697: supportedPoints: slices.Clone(m.supportedPoints),
handshake_messages.go#L699: sessionTicket: slices.Clone(m.sessionTicket),
handshake_messages.go#L700: supportedSignatureAlgorithms: slices.Clone(m.supportedSignatureAlgorithms),
handshake_messages.go#L701: supportedSignatureAlgorithmsCert: slices.Clone(m.supportedSignatureAlgorithmsCert),
handshake_messages.go#L703: secureRenegotiation: slices.Clone(m.secureRenegotiation),
handshake_messages.go#L705: alpnProtocols: slices.Clone(m.alpnProtocols),
handshake_messages.go#L707: supportedVersions: slices.Clone(m.supportedVersions),
handshake_messages.go#L708: cookie: slices.Clone(m.cookie),
handshake_messages.go#L709: keyShares: slices.Clone(m.keyShares),
handshake_messages.go#L711: pskModes: slices.Clone(m.pskModes),
handshake_messages.go#L712: pskIdentities: slices.Clone(m.pskIdentities),
handshake_messages.go#L713: pskBinders: slices.Clone(m.pskBinders),
handshake_messages.go#L714: quicTransportParameters: slices.Clone(m.quicTransportParameters),
handshake_messages.go#L715: encryptedClientHello: slices.Clone(m.encryptedClientHello),
net/http
server.go#L3529: nextProtos = slices.Clone(nextProtos)