func cmp.Compare
17 uses
cmp (current package)
cmp.go#L40: func Compare[T Ordered](x, y T) int {
encoding/json
encode.go#L1193: if c := cmp.Compare(len(a.index), len(b.index)); c != 0 {
internal/fmtsort
sort.go#L79: return cmp.Compare(aVal.Int(), bVal.Int())
sort.go#L81: return cmp.Compare(aVal.Uint(), bVal.Uint())
sort.go#L83: return cmp.Compare(aVal.String(), bVal.String())
sort.go#L85: return cmp.Compare(aVal.Float(), bVal.Float())
sort.go#L88: if c := cmp.Compare(real(a), real(b)); c != 0 {
sort.go#L91: return cmp.Compare(imag(a), imag(b))
sort.go#L103: return cmp.Compare(aVal.Pointer(), bVal.Pointer())
sort.go#L108: return cmp.Compare(aVal.Pointer(), bVal.Pointer())
net
dnsclient.go#L201: if r := cmp.Compare(a.Priority, b.Priority); r != 0 {
dnsclient.go#L204: return cmp.Compare(a.Weight, b.Weight)
dnsclient.go#L232: return cmp.Compare(a.Pref, b.Pref)
net/netip
netip.go#L1147: return cmp.Compare(p.Port(), p2.Port())
netip.go#L1313: if c := cmp.Compare(p.Addr().BitLen(), p2.Addr().BitLen()); c != 0 {
netip.go#L1316: if c := cmp.Compare(p.Bits(), p2.Bits()); c != 0 {
slices
slices.go#L63: if c := cmp.Compare(v1, v2); c != 0 {
 |
The pages are generated with Golds v0.7.6. (GOOS=linux 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 @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |