Versions in this module Expand all Collapse all v1 v1.0.1 Apr 21, 2023 Changes in this version + var MaxSafeJSInt = uint64(math.Pow(2, 53) - 2) + func BigIntDivCeil(a, b *big.Int) *big.Int + func ConvertUnmarshalledUint(x interface{}) (uint64, error) + func CreateDirSafe(path string, perms fs.FileMode) error + func DirectoryExists(directoryPath string) bool + func EncodeBytesToUint64(b []byte) uint64 + func EncodeUint64ToBytes(value uint64) []byte + func ExtendByteSlice(b []byte, needLength int) []byte + func FileExists(filePath string) bool + func GetTerminationSignalCh() <-chan os.Signal + func Max(a, b uint64) uint64 + func Min(a, b uint64) uint64 + func PadLeftOrTrim(bb []byte, size int) []byte + func SaveFileSafe(path string, data []byte, perms fs.FileMode) error + func SetupDataDir(dataDir string, paths []string, perms fs.FileMode) error + func ToFixedFloat(num float64, precision int) float64 + type Duration struct + func (d *Duration) UnmarshalJSON(b []byte) error + func (d Duration) MarshalJSON() ([]byte, error) + type JSONNumber struct + Value uint64 + func (d *JSONNumber) MarshalJSON() ([]byte, error) + func (d *JSONNumber) UnmarshalJSON(data []byte) error