Versions in this module Expand all Collapse all v0 v0.1.0 Mar 12, 2021 Changes in this version + var ZeroTime = time.Time + func BoolToInt(b bool) int + func BoolToUint64(b bool) uint64 + func BytesToUint64(b []byte) (uint64, error) + func MaxUint64(a, b uint64) uint64 + func MinDuration(a, b time.Duration) time.Duration + func MinUint64(a, b uint64) uint64 + func ParseTimestamp(data []byte) (time.Time, error) + func SubTimeByWallClock(after time.Time, before time.Time) time.Duration + func Uint64ToBytes(v uint64) []byte + type ByteSize uint64 + func (b *ByteSize) UnmarshalJSON(text []byte) error + func (b *ByteSize) UnmarshalText(text []byte) error + func (b ByteSize) MarshalJSON() ([]byte, error) + type Duration struct + func NewDuration(duration time.Duration) Duration + func (d *Duration) MarshalJSON() ([]byte, error) + func (d *Duration) UnmarshalJSON(text []byte) error + func (d *Duration) UnmarshalText(text []byte) error + func (d Duration) MarshalText() ([]byte, error) + type StringSlice []string + func (s *StringSlice) UnmarshalJSON(text []byte) error + func (s StringSlice) MarshalJSON() ([]byte, error)