Versions in this module Expand all Collapse all v1 v1.4.2 May 30, 2023 v1.4.0 May 30, 2023 Changes in this version + const BlackHoleAddr + const WhiteHoleAddr + var ErrSliceSize = errors.New("Slice size larger than buffer size") + var FirstEcosystemTables = map[string]bool + var HoleAddrMap = map[string]Hole + func AddressToID(input string) (addr int64) + func AddressToString(int int64) (str string) + func AddressToStringUint64(uint uint64) (str string) + func BinMarshal(out *[]byte, v any) (*[]byte, error) + func BinToDec(bin []byte) int64 + func BinToDecBytesShift(bin *[]byte, num int64) int64 + func BinToHex(v any) []byte + func BinUnmarshal(out *[]byte, v any) error + func BinUnmarshalBuff(buf *bytes.Buffer, v any) error + func BytesShift(str *[]byte, index int64) (ret []byte) + func BytesShiftReverse(str *[]byte, v any) []byte + func BytesToFloat64(s []byte) float64 + func BytesToInt(s []byte) int + func BytesToInt64(s []byte) int64 + func CheckSum(val []byte) int + func DecToBin(v any, sizeBytes int64) []byte + func DecodeBytesBuf(buf *bytes.Buffer) ([]byte, error) + func DecodeLenInt64(data *[]byte) (int64, error) + func DecodeLenInt64Buf(buf *bytes.Buffer) (int64, error) + func DecodeLength(buf *[]byte) (ret int64, err error) + func DecodeLengthBuf(buf *bytes.Buffer) (int, error) + func EncodeLenByte(out *[]byte, buf []byte) *[]byte + func EncodeLenInt64(data *[]byte, x int64) *[]byte + func EncodeLenInt64InPlace(x int64) []byte + func EncodeLength(length int64) []byte + func EncodeLengthPlusData(idata any) []byte + func Escape(data string) string + func EscapeForJSON(data string) string + func EscapeName(name string) string + func EscapeSQL(name string) string + func FieldToBytes(v any, num int) []byte + func Float64ToStr(f float64) string + func FormatMoney(exp string, digit int32) (string, error) + func HexToBin(ihexdata any) []byte + func IDToAddress(id int64) (out string) + func InSliceString(search string, slice []string) bool + func Int64ToByte(num int64) []byte + func Int64ToDateStr(date int64, format string) string + func Int64ToStr(num int64) string + func Int64Toint(dat int64) (int, error) + func IntToStr(num int) string + func InterfaceSliceToStr(i []any) (strs []string, err error) + func InterfaceToFloat64(i any) float64 + func InterfaceToStr(v any) (string, error) + func IsLatin(name string) bool + func IsValidAddress(address string) bool + func MarshalJson(v any) string + func NumString(in string) string + func ParseName(in string) (id int64, name string) + func ParseTable(tblname string, defaultEcosystem int64) string + func RSortMap(m map[int64]string) []map[int64]string + func Round(num float64) int64 + func RoundWithPrecision(num float64, precision int) float64 + func RoundWithoutPrecision(num float64) int64 + func Sanitize(name string, available string) string + func SanitizeName(input string) string + func SanitizeNumber(input string) string + func SanitizeScript(input string) string + func SliceReverse(s []int64) []int64 + func SortMap(m map[int64]string) []map[int64]string + func StrToFloat64(s string) float64 + func StrToInt(s string) int + func StrToInt64(s string) int64 + func StrToMoney(str string) float64 + func StrToUint64(s string) uint64 + func StringToAddress(str string) (result int64) + func StripTags(value string) string + func SubNodeParseTable(tblname string, defaultEcosystem int64) string + func UInt32ToStr(num uint32) string + func ValidateEmail(email string) bool + func ValueToDecimal(v any) (ret decimal.Decimal, err error) + func ValueToInt(v any) (ret int64, err error) + type Hole struct + K int64 + S string