// Compare compares floats. The result will be 0 if lhs==rhs, -1 if f < // rhs, and +1 if f > rhs. func FloatCompare(lhs, rhs float64) int { … } // IntCompare compares integers. The result will be 0 if i==rhs, -1 if i < // rhs, and +1 if i > rhs. func IntCompare(lhs, rhs int64) int { … } // Compare compares booleans. The result will be 0 if b==rhs, -1 if b < // rhs, and +1 if b > rhs. func BoolCompare(lhs, rhs bool) int { … }