Documentation ¶
Index ¶
- func BoolCompare(v1, v2 bool) int
- func BytesCompare(v1, v2 xbytes.Bytes) int
- func DoubleCompare(v1, v2 float64) int
- func IntCompare(v1, v2 int) int
- func RawBytesCompare(v1, v2 []byte) int
- func ReverseBoolCompare(v1, v2 bool) int
- func ReverseDoubleCompare(v1, v2 float64) int
- func ReverseIntCompare(v1, v2 int) int
- func ReverseRawBytesCompare(v1, v2 []byte) int
- func ReverseTimeCompare(v1, v2 int64) int
- func TimeCompare(v1, v2 int64) int
- type BoolCompareFn
- type BytesCompareFn
- type DoubleCompareFn
- type IntCompareFn
- type TimeCompareFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolCompare ¶
BoolCompare compares two boolean values, and returns * -1 if v1 < v2 * 0 if v1 == v2 * 1 if v1 > v2
func BytesCompare ¶
BytesCompare compares two string values, and returns * -1 if v1 < v2 * 0 if v1 == v2 * 1 if v1 > v2
func DoubleCompare ¶
DoubleCompare compares two double values, and returns * -1 if v1 < v2 * 0 if v1 == v2 * 1 if v1 > v2
func IntCompare ¶
IntCompare compares two int values, and returns * -1 if v1 < v2 * 0 if v1 == v2 * 1 if v1 > v2
func RawBytesCompare ¶
RawBytesCompare compares two raw byte slices.
func ReverseBoolCompare ¶
ReverseBoolCompare reverse compares two boolean values.
func ReverseDoubleCompare ¶
ReverseDoubleCompare reverse compares two double values.
func ReverseIntCompare ¶
ReverseIntCompare reverse compares two boolean values.
func ReverseRawBytesCompare ¶
ReverseRawBytesCompare reverse compares two raw byte slices.
func ReverseTimeCompare ¶
ReverseTimeCompare reverse compares two time values.
func TimeCompare ¶
TimeCompare compares two time values, and returns * -1 if v1 < v2 * 0 if v1 == v2 * 1 if v1 > v2
Types ¶
type BoolCompareFn ¶
BoolCompareFn compares two boolean values.
type BytesCompareFn ¶
BytesCompareFn compares two string values.
type DoubleCompareFn ¶
DoubleCompareFn compares two double values.
type TimeCompareFn ¶
TimeCompareFn compares two time values.