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)
| 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. |
| 47 | func Compare(a, b UUID) int { |
| 48 | return bytes.Compare(a[:], b[:]) |
| 49 | } |
no outgoing calls