MCPcopy
hub / github.com/segmentio/ksuid / Compare

Function Compare

ksuid.go:279–281  ·  view source on GitHub ↗

Implements comparison for KSUID type

(a, b KSUID)

Source from the content-addressed store, hash-verified

277
278// Implements comparison for KSUID type
279func Compare(a, b KSUID) int {
280 return bytes.Compare(a[:], b[:])
281}
282
283// Sorts the given slice of KSUIDs
284func Sort(ids []KSUID) {

Callers 4

TestParseFunction · 0.85
TestEncodeAndDecodeFunction · 0.85
TestSortFunction · 0.85
BenchmarkCompareFunction · 0.85

Calls

no outgoing calls

Tested by 4

TestParseFunction · 0.68
TestEncodeAndDecodeFunction · 0.68
TestSortFunction · 0.68
BenchmarkCompareFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…