Versions in this module Expand all Collapse all v0 v0.0.2 Nov 26, 2021 v0.0.1 Nov 26, 2021 Changes in this version + var ErrOverflowInt32 = errors.New("int32 overflow") + var ErrOverflowInt8 = errors.New("int8 overflow") + var ErrOverflowUint8 = errors.New("uint8 overflow") + func MaxInt(a, b int) int + func MaxInt64(a, b int64) int64 + func MinInt(a, b int) int + func MinInt64(a, b int64) int64 + func SafeAddInt32(a, b int32) int32 + func SafeConvertInt32(a int64) int32 + func SafeConvertInt8(a int64) (int8, error) + func SafeConvertUint8(a int64) (uint8, error) + func SafeSubInt32(a, b int32) int32 + type Fraction struct + Denominator uint64 + Numerator uint64 + func ParseFraction(f string) (Fraction, error) + func (fr Fraction) String() string