MCPcopy
hub / github.com/google/uuid / Compare

Function Compare

util.go:47–49  ·  view source on GitHub ↗

Compare returns an integer comparing two uuids lexicographically. The result will be 0 if a == b, -1 if a < b, and +1 if a > b.

(a, b UUID)

Source from the content-addressed store, hash-verified

45
46// Compare returns an integer comparing two uuids lexicographically. The result will be 0 if a == b, -1 if a < b, and +1 if a > b.
47func Compare(a, b UUID) int {
48 return bytes.Compare(a[:], b[:])
49}

Callers 1

Calls

no outgoing calls

Tested by 1