package
0.3.0
Repository: https://github.com/matrixorigin/matrixcube.git
Documentation: pkg.go.dev

# Functions

BoolToInt converts bool to int.
BoolToUint64 converts bool to uint64.
BytesToUint64 converts a byte slice to uint64.
MaxUint64 returns the max value between two variables whose type are uint64.
MinDuration returns the min value between two variables whose type are time.Duration.
MinUint64 returns the min value between two variables whose type are uint64.
NewDuration creates a Duration from time.Duration.
ParseTimestamp returns a timestamp for a given byte slice.
SubTimeByWallClock returns the duration between two different timestamps.
Uint64ToBytes converts uint64 to a byte slice.

# Variables

ZeroTime is a zero time.

# Structs

Duration is a wrapper of time.Duration for TOML and JSON.

# Type aliases

ByteSize is a retype uint64 for TOML and JSON.
StringSlice is more friendly to json encode/decode.