func slices.Clone
29 uses
slices (current package)
slices.go#L353: func Clone[S ~[]E, E any](s S) S {
crypto/tls
common.go#L1699: sigAlgs = slices.Clone(testingOnlySupportedSignatureAlgorithms)
defaults.go#L53: return slices.Clone(cipherSuitesPreferenceOrder)
defaults.go#L55: return slices.Clone(cipherSuitesPreferenceOrderNoAES)
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),
go/token
serialize.go#L60: Lines: slices.Clone(f.lines),
serialize.go#L61: Infos: slices.Clone(f.infos),
golang.org/x/tools/internal/gcimporter
iimport.go#L318: list := slices.Clone(pkgList[1:])
net/http
server.go#L3568: nextProtos = slices.Clone(nextProtos)
os
root.go#L319: parts := slices.Clone(prefix)