Versions in this module Expand all Collapse all v0 v0.1.2 Feb 6, 2023 Changes in this version + const SecondsPerDay + var Fixed8Decimals = int(math.Pow10(precision)) + var Fixed8One = NewFixed8(1) + func AbsInt(a int64) int64 + func Compress(bz []byte) ([]byte, error) + func ConcurrentExecuteAsync(concurrency int, producer func(), consumer func(), postConsume func()) + func ConcurrentExecuteSync(concurrency int, producer func(), consumer func()) + func Int642Bytes(n int64) []byte + func IsAlphaNum(s string) bool + func MaxInt(a, b int64) int64 + func MinInt(a, b int64) int64 + func Mul64(a, b int64) (int64, bool) + func Now() time.Time + func ParsePrice(priceStr string) (int64, error) + func SameDayInUTC(first, second time.Time) bool + type Fixed8 int64 + func Fixed8DecodeString(s string) (Fixed8, error) + func NewFixed8(val int64) Fixed8 + func (f *Fixed8) MarshalJSON() ([]byte, error) + func (f *Fixed8) UnmarshalJSON(data []byte) error + func (f Fixed8) String() string + func (f Fixed8) ToInt64() int64 + func (f Fixed8) Value() int64 + type FixedSizeRing struct + func NewFixedSizedRing(cap int64) *FixedSizeRing + func (q *FixedSizeRing) Count() int64 + func (q *FixedSizeRing) Elements() []interface{} + func (q *FixedSizeRing) IsEmpty() bool + func (q *FixedSizeRing) Push(v interface{}) *FixedSizeRing + func (q *FixedSizeRing) String() string