package objectid
import "bytes"
// Compare lexicographically compares two object IDs by their canonical byte
// representation.
func Compare(left, right ObjectID) int {
return bytes.Compare(left.RawBytes(), right.RawBytes())
}
![]() |
index : ~runxiyu/furgit.git | |
| Git library in pure Go |
| aboutsummaryrefslogtreecommitdiff |
package objectid
import "bytes"
// Compare lexicographically compares two object IDs by their canonical byte
// representation.
func Compare(left, right ObjectID) int {
return bytes.Compare(left.RawBytes(), right.RawBytes())
}