Documentation
¶
Index ¶
- func Bin128(a, b bin.Bin128) int
- func Bin128Error(a, b bin.Bin128) (int, error)
- func Bin128Status(a, b bin.Bin128) (int, status.Status)
- func Bin256(a, b bin.Bin256) int
- func Bin256Error(a, b bin.Bin256) (int, error)
- func Bin256Status(a, b bin.Bin256) (int, status.Status)
- func Bin64(a, b bin.Bin64) int
- func Bin64Error(a, b bin.Bin64) (int, error)
- func Bin64Status(a, b bin.Bin64) (int, status.Status)
- func Bool(a, b bool) int
- func BoolError(a, b bool) (int, error)
- func BoolStatus(a, b bool) (int, status.Status)
- func Byte(a, b byte) int
- func ByteError(a, b byte) (int, error)
- func ByteStatus(a, b byte) (int, status.Status)
- func Bytes(a, b []byte) int
- func BytesError(a, b []byte) (int, error)
- func BytesStatus(a, b []byte) (int, status.Status)
- func Duration(a, b time.Duration) int
- func DurationError(a, b time.Duration) (int, error)
- func DurationStatus(a, b time.Duration) (int, status.Status)
- func Float32(a, b float32) int
- func Float32Error(a, b float32) (int, error)
- func Float32Status(a, b float32) (int, status.Status)
- func Float64(a, b float64) int
- func Float64Error(a, b float64) (int, error)
- func Float64Status(a, b float64) (int, status.Status)
- func Int(a, b int) int
- func Int16(a, b int16) int
- func Int16Error(a, b int16) (int, error)
- func Int16Status(a, b int16) (int, status.Status)
- func Int32(a, b int32) int
- func Int32Error(a, b int32) (int, error)
- func Int32Status(a, b int32) (int, status.Status)
- func Int64(a, b int64) int
- func Int64Error(a, b int64) (int, error)
- func Int64Status(a, b int64) (int, status.Status)
- func IntError(a, b int) (int, error)
- func IntStatus(a, b int) (int, status.Status)
- func String(a, b string) int
- func StringError(a, b string) (int, error)
- func StringStatus(a, b string) (int, status.Status)
- func Time(a, b time.Time) int
- func TimeError(a, b time.Time) (int, error)
- func TimeStatus(a, b time.Time) (int, status.Status)
- func Uint(a, b uint) int
- func Uint16(a, b uint16) int
- func Uint16Error(a, b uint16) (int, error)
- func Uint16Status(a, b uint16) (int, status.Status)
- func Uint32(a, b uint32) int
- func Uint32Error(a, b uint32) (int, error)
- func Uint32Status(a, b uint32) (int, status.Status)
- func Uint64(a, b uint64) int
- func Uint64Error(a, b uint64) (int, error)
- func Uint64Status(a, b uint64) (int, status.Status)
- func UintError(a, b uint) (int, error)
- func UintStatus(a, b uint) (int, status.Status)
- type Compare
- type CompareBytes
- type CompareBytesError
- type CompareBytesStatus
- type CompareError
- type CompareStatus
- type CompareTo
- type CompareToError
- type CompareToStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesError ¶
func Float32Error ¶
func Float64Error ¶
func Int16Error ¶
func Int32Error ¶
func Int64Error ¶
func StringError ¶
func Uint16Error ¶
func Uint32Error ¶
func Uint64Error ¶
Types ¶
type Compare ¶
Compare compares to values and returns the result. The result should be 0 if a == b, negative if a < b, and positive if a > b.
func Ordered ¶
func Ordered[T constraints.Ordered]() Compare[T]
Ordered returns a comparison function for a natually ordered type.
type CompareBytes ¶
type CompareBytesError ¶
type CompareBytesError = CompareError[[]byte]
type CompareBytesStatus ¶
type CompareBytesStatus = CompareStatus[[]byte]
type CompareError ¶
CompareError compares to values and returns the result, or an error. The result should be 0 if a == b, negative if a < b, and positive if a > b.
func OrderedError ¶
func OrderedError[T constraints.Ordered]() CompareError[T]
OrderedError returns a comparison function for a natually ordered type.
type CompareStatus ¶
CompareStatus compares to values and returns the result and a status. The result should be 0 if a == b, negative if a < b, and positive if a > b.
func OrderedStatus ¶
func OrderedStatus[T constraints.Ordered]() CompareStatus[T]
OrderedStatus returns a comparison function for a natually ordered type.
type CompareTo ¶
CompareTo compares a value to another and returns the result. The result should be 0 if value == another, <0 if value < another, and >0 if value > another.
Example:
var another int func(value int) int { return value - another }
type CompareToError ¶
CompareToError compares a value to another and returns the result, or an error. The result should be 0 if value == another, <0 if value < another, and >0 if value > another.
Example:
var another int func(value int) (int, error) { return value - another, nil }
type CompareToStatus ¶
CompareToStatus compares a value to another and returns the result and a status. The result should be 0 if value == another, <0 if value < another, and >0 if value > another.
Example:
var another int func(value int) (int, status.Status) { return value - another, status.OK }