Documentation
¶
Index ¶
- func Bool(v1 bool, v2 bool) int
- func BoolSlice(S1 []bool, S2 []bool) int
- func Float32(v1 float32, v2 float32) int
- func Float32Slice(S1 []float32, S2 []float32) int
- func Float64(v1 float64, v2 float64) int
- func Float64Slice(S1 []float64, S2 []float64) int
- func Int(v1 int, v2 int) int
- func Int16(v1 int16, v2 int16) int
- func Int16Slice(S1 []int16, S2 []int16) int
- func Int32(v1 int32, v2 int32) int
- func Int32Slice(S1 []int32, S2 []int32) int
- func Int64(v1 int64, v2 int64) int
- func Int64Slice(S1 []int64, S2 []int64) int
- func Int8(v1 int8, v2 int8) int
- func Int8Slice(S1 []int8, S2 []int8) int
- func IntSlice(S1 []int, S2 []int) int
- func MaxAndIndexInt(S ...int) (int, int)
- func MaxAndIndexInt16(S ...int16) (int16, int)
- func MaxAndIndexInt32(S ...int32) (int32, int)
- func MaxAndIndexInt64(S ...int64) (int64, int)
- func MaxAndIndexInt8(S ...int8) (int8, int)
- func MaxAndIndexUint(S ...uint) (uint, int)
- func MaxAndIndexUint16(S ...uint16) (uint16, int)
- func MaxAndIndexUint32(S ...uint32) (uint32, int)
- func MaxAndIndexUint64(S ...uint64) (uint64, int)
- func MaxAndIndexUint8(S ...uint8) (uint8, int)
- func MaxInt(S ...int) int
- func MaxInt16(S ...int16) int16
- func MaxInt32(S ...int32) int32
- func MaxInt64(S ...int64) int64
- func MaxInt8(S ...int8) int8
- func MaxOfPairInt(v1 int, v2 int) int
- func MaxOfPairInt16(v1 int16, v2 int16) int16
- func MaxOfPairInt32(v1 int32, v2 int32) int32
- func MaxOfPairInt64(v1 int64, v2 int64) int64
- func MaxOfPairInt8(v1 int8, v2 int8) int8
- func MaxOfPairUint(v1 uint, v2 uint) uint
- func MaxOfPairUint16(v1 uint16, v2 uint16) uint16
- func MaxOfPairUint32(v1 uint32, v2 uint32) uint32
- func MaxOfPairUint64(v1 uint64, v2 uint64) uint64
- func MaxOfPairUint8(v1 uint8, v2 uint8) uint8
- func MaxUint(S ...uint) uint
- func MaxUint16(S ...uint16) uint16
- func MaxUint32(S ...uint32) uint32
- func MaxUint64(S ...uint64) uint64
- func MaxUint8(S ...uint8) uint8
- func MinAndIndexInt(S ...int) (int, int)
- func MinAndIndexInt16(S ...int16) (int16, int)
- func MinAndIndexInt32(S ...int32) (int32, int)
- func MinAndIndexInt64(S ...int64) (int64, int)
- func MinAndIndexInt8(S ...int8) (int8, int)
- func MinAndIndexUint(S ...uint) (uint, int)
- func MinAndIndexUint16(S ...uint16) (uint16, int)
- func MinAndIndexUint32(S ...uint32) (uint32, int)
- func MinAndIndexUint64(S ...uint64) (uint64, int)
- func MinAndIndexUint8(S ...uint8) (uint8, int)
- func MinInt(S ...int) int
- func MinInt16(S ...int16) int16
- func MinInt32(S ...int32) int32
- func MinInt64(S ...int64) int64
- func MinInt8(S ...int8) int8
- func MinOfPairInt(v1 int, v2 int) int
- func MinOfPairInt16(v1 int16, v2 int16) int16
- func MinOfPairInt32(v1 int32, v2 int32) int32
- func MinOfPairInt64(v1 int64, v2 int64) int64
- func MinOfPairInt8(v1 int8, v2 int8) int8
- func MinOfPairUint(v1 uint, v2 uint) uint
- func MinOfPairUint16(v1 uint16, v2 uint16) uint16
- func MinOfPairUint32(v1 uint32, v2 uint32) uint32
- func MinOfPairUint64(v1 uint64, v2 uint64) uint64
- func MinOfPairUint8(v1 uint8, v2 uint8) uint8
- func MinUint(S ...uint) uint
- func MinUint16(S ...uint16) uint16
- func MinUint32(S ...uint32) uint32
- func MinUint64(S ...uint64) uint64
- func MinUint8(S ...uint8) uint8
- func String(v1 string, v2 string) int
- func StringSlice(S1 []string, S2 []string) int
- func Time(v1 time.Time, v2 time.Time) int
- func Uint(v1 uint, v2 uint) int
- func Uint16(v1 uint16, v2 uint16) int
- func Uint16Slice(S1 []uint16, S2 []uint16) int
- func Uint32(v1 uint32, v2 uint32) int
- func Uint32Slice(S1 []uint32, S2 []uint32) int
- func Uint64(v1 uint64, v2 uint64) int
- func Uint64Slice(S1 []uint64, S2 []uint64) int
- func Uint8(v1 uint8, v2 uint8) int
- func Uint8Slice(S1 []uint8, S2 []uint8) int
- func UintSlice(S1 []uint, S2 []uint) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bool ¶
Bool compares the two values v1 and v2. Returns -1 if v1 < v2, 0 if v1 == v1, and +1 if v1 > v2.
func BoolSlice ¶
BoolSlice compares the two slices S1 and S2. Returns -1 if S1 < S2, 0 if S1 == S2, and +1 if S1 > S2. Order is grlex: if #S1 < #S2 then S1 < S2, if #S1 > #S2 then S1 > S2, otherwise the first entry such that S1[i] != S2[i] is used to determine the order.
func Float32 ¶
Float32 compares the two values v1 and v2. Returns -1 if v1 < v2, 0 if v1 == v1, and +1 if v1 > v2.
func Float32Slice ¶
Float32Slice compares the two slices S1 and S2. Returns -1 if S1 < S2, 0 if S1 == S2, and +1 if S1 > S2. Order is grlex: if #S1 < #S2 then S1 < S2, if #S1 > #S2 then S1 > S2, otherwise the first entry such that S1[i] != S2[i] is used to determine the order.
func Float64 ¶
Float64 compares the two values v1 and v2. Returns -1 if v1 < v2, 0 if v1 == v1, and +1 if v1 > v2.
func Float64Slice ¶
Float64Slice compares the two slices S1 and S2. Returns -1 if S1 < S2, 0 if S1 == S2, and +1 if S1 > S2. Order is grlex: if #S1 < #S2 then S1 < S2, if #S1 > #S2 then S1 > S2, otherwise the first entry such that S1[i] != S2[i] is used to determine the order.
func Int ¶
Int compares the two values v1 and v2. Returns -1 if v1 < v2, 0 if v1 == v1, and +1 if v1 > v2.
func Int16 ¶
Int16 compares the two values v1 and v2. Returns -1 if v1 < v2, 0 if v1 == v1, and +1 if v1 > v2.
func Int16Slice ¶
Int16Slice compares the two slices S1 and S2. Returns -1 if S1 < S2, 0 if S1 == S2, and +1 if S1 > S2. Order is grlex: if #S1 < #S2 then S1 < S2, if #S1 > #S2 then S1 > S2, otherwise the first entry such that S1[i] != S2[i] is used to determine the order.
func Int32 ¶
Int32 compares the two values v1 and v2. Returns -1 if v1 < v2, 0 if v1 == v1, and +1 if v1 > v2.
func Int32Slice ¶
Int32Slice compares the two slices S1 and S2. Returns -1 if S1 < S2, 0 if S1 == S2, and +1 if S1 > S2. Order is grlex: if #S1 < #S2 then S1 < S2, if #S1 > #S2 then S1 > S2, otherwise the first entry such that S1[i] != S2[i] is used to determine the order.
func Int64 ¶
Int64 compares the two values v1 and v2. Returns -1 if v1 < v2, 0 if v1 == v1, and +1 if v1 > v2.
func Int64Slice ¶
Int64Slice compares the two slices S1 and S2. Returns -1 if S1 < S2, 0 if S1 == S2, and +1 if S1 > S2. Order is grlex: if #S1 < #S2 then S1 < S2, if #S1 > #S2 then S1 > S2, otherwise the first entry such that S1[i] != S2[i] is used to determine the order.
func Int8 ¶
Int8 compares the two values v1 and v2. Returns -1 if v1 < v2, 0 if v1 == v1, and +1 if v1 > v2.
func Int8Slice ¶
Int8Slice compares the two slices S1 and S2. Returns -1 if S1 < S2, 0 if S1 == S2, and +1 if S1 > S2. Order is grlex: if #S1 < #S2 then S1 < S2, if #S1 > #S2 then S1 > S2, otherwise the first entry such that S1[i] != S2[i] is used to determine the order.
func IntSlice ¶
IntSlice compares the two slices S1 and S2. Returns -1 if S1 < S2, 0 if S1 == S2, and +1 if S1 > S2. Order is grlex: if #S1 < #S2 then S1 < S2, if #S1 > #S2 then S1 > S2, otherwise the first entry such that S1[i] != S2[i] is used to determine the order.
func MaxAndIndexInt ¶
MaxAndIndexInt returns the largest value in the slice S, along with the index of the first occurrence of that value in S. If S is empty then 0 is returned, and the index will be -1.
func MaxAndIndexInt16 ¶
MaxAndIndexInt16 returns the largest value in the slice S, along with the index of the first occurrence of that value in S. If S is empty then 0 is returned, and the index will be -1.
func MaxAndIndexInt32 ¶
MaxAndIndexInt32 returns the largest value in the slice S, along with the index of the first occurrence of that value in S. If S is empty then 0 is returned, and the index will be -1.
func MaxAndIndexInt64 ¶
MaxAndIndexInt64 returns the largest value in the slice S, along with the index of the first occurrence of that value in S. If S is empty then 0 is returned, and the index will be -1.
func MaxAndIndexInt8 ¶
MaxAndIndexInt8 returns the largest value in the slice S, along with the index of the first occurrence of that value in S. If S is empty then 0 is returned, and the index will be -1.
func MaxAndIndexUint ¶
MaxAndIndexUint returns the largest value in the slice S, along with the index of the first occurrence of that value in S. If S is empty then 0 is returned, and the index will be -1.
func MaxAndIndexUint16 ¶
MaxAndIndexUint16 returns the largest value in the slice S, along with the index of the first occurrence of that value in S. If S is empty then 0 is returned, and the index will be -1.
func MaxAndIndexUint32 ¶
MaxAndIndexUint32 returns the largest value in the slice S, along with the index of the first occurrence of that value in S. If S is empty then 0 is returned, and the index will be -1.
func MaxAndIndexUint64 ¶
MaxAndIndexUint64 returns the largest value in the slice S, along with the index of the first occurrence of that value in S. If S is empty then 0 is returned, and the index will be -1.
func MaxAndIndexUint8 ¶
MaxAndIndexUint8 returns the largest value in the slice S, along with the index of the first occurrence of that value in S. If S is empty then 0 is returned, and the index will be -1.
func MaxInt16 ¶
MaxInt16 returns the largest value in the slice S. If S is empty then 0 is returned.
func MaxInt32 ¶
MaxInt32 returns the largest value in the slice S. If S is empty then 0 is returned.
func MaxInt64 ¶
MaxInt64 returns the largest value in the slice S. If S is empty then 0 is returned.
func MaxOfPairInt ¶
MaxOfPairInt returns the larger of the two given values.
func MaxOfPairInt16 ¶
MaxOfPairInt16 returns the larger of the two given values.
func MaxOfPairInt32 ¶
MaxOfPairInt32 returns the larger of the two given values.
func MaxOfPairInt64 ¶
MaxOfPairInt64 returns the larger of the two given values.
func MaxOfPairInt8 ¶
MaxOfPairInt8 returns the larger of the two given values.
func MaxOfPairUint ¶
MaxOfPairUint returns the larger of the two given values.
func MaxOfPairUint16 ¶
MaxOfPairUint16 returns the larger of the two given values.
func MaxOfPairUint32 ¶
MaxOfPairUint32 returns the larger of the two given values.
func MaxOfPairUint64 ¶
MaxOfPairUint64 returns the larger of the two given values.
func MaxOfPairUint8 ¶
MaxOfPairUint8 returns the larger of the two given values.
func MaxUint16 ¶
MaxUint16 returns the largest value in the slice S. If S is empty then 0 is returned.
func MaxUint32 ¶
MaxUint32 returns the largest value in the slice S. If S is empty then 0 is returned.
func MaxUint64 ¶
MaxUint64 returns the largest value in the slice S. If S is empty then 0 is returned.
func MaxUint8 ¶
MaxUint8 returns the largest value in the slice S. If S is empty then 0 is returned.
func MinAndIndexInt ¶
MinAndIndexInt returns the smallest value in the slice S, along with the index of the first occurrence of that value in S. If S is empty then 0 is returned, and the index will be -1.
func MinAndIndexInt16 ¶
MinAndIndexInt16 returns the smallest value in the slice S, along with the index of the first occurrence of that value in S. If S is empty then 0 is returned, and the index will be -1.
func MinAndIndexInt32 ¶
MinAndIndexInt32 returns the smallest value in the slice S, along with the index of the first occurrence of that value in S. If S is empty then 0 is returned, and the index will be -1.
func MinAndIndexInt64 ¶
MinAndIndexInt64 returns the smallest value in the slice S, along with the index of the first occurrence of that value in S. If S is empty then 0 is returned, and the index will be -1.
func MinAndIndexInt8 ¶
MinAndIndexInt8 returns the smallest value in the slice S, along with the index of the first occurrence of that value in S. If S is empty then 0 is returned, and the index will be -1.
func MinAndIndexUint ¶
MinAndIndexUint returns the smallest value in the slice S, along with the index of the first occurrence of that value in S. If S is empty then 0 is returned, and the index will be -1.
func MinAndIndexUint16 ¶
MinAndIndexUint16 returns the smallest value in the slice S, along with the index of the first occurrence of that value in S. If S is empty then 0 is returned, and the index will be -1.
func MinAndIndexUint32 ¶
MinAndIndexUint32 returns the smallest value in the slice S, along with the index of the first occurrence of that value in S. If S is empty then 0 is returned, and the index will be -1.
func MinAndIndexUint64 ¶
MinAndIndexUint64 returns the smallest value in the slice S, along with the index of the first occurrence of that value in S. If S is empty then 0 is returned, and the index will be -1.
func MinAndIndexUint8 ¶
MinAndIndexUint8 returns the smallest value in the slice S, along with the index of the first occurrence of that value in S. If S is empty then 0 is returned, and the index will be -1.
func MinInt16 ¶
MinInt16 returns the smallest value in the slice S. If S is empty then 0 is returned.
func MinInt32 ¶
MinInt32 returns the smallest value in the slice S. If S is empty then 0 is returned.
func MinInt64 ¶
MinInt64 returns the smallest value in the slice S. If S is empty then 0 is returned.
func MinOfPairInt ¶
MinOfPairInt returns the smaller of the two given values.
func MinOfPairInt16 ¶
MinOfPairInt16 returns the smaller of the two given values.
func MinOfPairInt32 ¶
MinOfPairInt32 returns the smaller of the two given values.
func MinOfPairInt64 ¶
MinOfPairInt64 returns the smaller of the two given values.
func MinOfPairInt8 ¶
MinOfPairInt8 returns the smaller of the two given values.
func MinOfPairUint ¶
MinOfPairUint returns the smaller of the two given values.
func MinOfPairUint16 ¶
MinOfPairUint16 returns the smaller of the two given values.
func MinOfPairUint32 ¶
MinOfPairUint32 returns the smaller of the two given values.
func MinOfPairUint64 ¶
MinOfPairUint64 returns the smaller of the two given values.
func MinOfPairUint8 ¶
MinOfPairUint8 returns the smaller of the two given values.
func MinUint16 ¶
MinUint16 returns the smallest value in the slice S. If S is empty then 0 is returned.
func MinUint32 ¶
MinUint32 returns the smallest value in the slice S. If S is empty then 0 is returned.
func MinUint64 ¶
MinUint64 returns the smallest value in the slice S. If S is empty then 0 is returned.
func MinUint8 ¶
MinUint8 returns the smallest value in the slice S. If S is empty then 0 is returned.
func String ¶
String compares the two values v1 and v2. Returns -1 value if v1 < v2, 0 if v1 == v1, and +1 if v1 > v2.
func StringSlice ¶
StringSlice compares the two slices S1 and S2. Returns -1 if S1 < S2, 0 if S1 == S2, and +1 if S1 > S2. Order is grlex: if #S1 < #S2 then S1 < S2, if #S1 > #S2 then S1 > S2, otherwise the first entry such that S1[i] != S2[i] is used to determine the order.
func Time ¶
Time compares the two values v1 and v2. Returns -1 if v1 < v2, 0 if v1 == v1, and +1 if v1 > v2.
func Uint ¶
Uint compares the two values v1 and v2. Returns -1 if v1 < v2, 0 if v1 == v1, and +1 if v1 > v2.
func Uint16 ¶
Uint16 compares the two values v1 and v2. Returns -1 if v1 < v2, 0 if v1 == v1, and +1 if v1 > v2.
func Uint16Slice ¶
Uint16Slice compares the two slices S1 and S2. Returns -1 if S1 < S2, 0 if S1 == S2, and +1 if S1 > S2. Order is grlex: if #S1 < #S2 then S1 < S2, if #S1 > #S2 then S1 > S2, otherwise the first entry such that S1[i] != S2[i] is used to determine the order.
func Uint32 ¶
Uint32 compares the two values v1 and v2. Returns -1 if v1 < v2, 0 if v1 == v1, and +1 if v1 > v2.
func Uint32Slice ¶
Uint32Slice compares the two slices S1 and S2. Returns -1 if S1 < S2, 0 if S1 == S2, and +1 if S1 > S2. Order is grlex: if #S1 < #S2 then S1 < S2, if #S1 > #S2 then S1 > S2, otherwise the first entry such that S1[i] != S2[i] is used to determine the order.
func Uint64 ¶
Uint64 compares the two values v1 and v2. Returns -1 if v1 < v2, 0 if v1 == v1, and +1 if v1 > v2.
func Uint64Slice ¶
Uint64Slice compares the two slices S1 and S2. Returns -1 if S1 < S2, 0 if S1 == S2, and +1 if S1 > S2. Order is grlex: if #S1 < #S2 then S1 < S2, if #S1 > #S2 then S1 > S2, otherwise the first entry such that S1[i] != S2[i] is used to determine the order.
func Uint8 ¶
Uint8 compares the two values v1 and v2. Returns -1 if v1 < v2, 0 if v1 == v1, and +1 if v1 > v2.
func Uint8Slice ¶
Uint8Slice compares the two slices S1 and S2. Returns -1 if S1 < S2, 0 if S1 == S2, and +1 if S1 > S2. Order is grlex: if #S1 < #S2 then S1 < S2, if #S1 > #S2 then S1 > S2, otherwise the first entry such that S1[i] != S2[i] is used to determine the order.
Types ¶
This section is empty.