Versions in this module Expand all Collapse all v1 v1.0.0 Jan 2, 2024 Changes in this version + const BASE53_ALPHABET_SIZE + func BuildStruct[T any]() *T + func Check_err(err error) + func Convert_str_to_uint64(input_str string) uint64 + func Convert_uint64_to_str(bigendian_uint64 uint64, length int) string + func Copy_Slice_Into_150_Arr(slice []byte, arr [150]byte) + func Crypto_RandString(length int) string + func Crypto_Randint(max int) (int, error) + func Crypto_Random_Choice[T any](arr *[]T) (T, error) + func Divmod(numerator, denominator int) (int, int) + func Get_file_size(f *os.File) int64 + func Int64_to_string(num int64) string + func IsSameType(a, b interface{}) bool + func Power_Naive(a, b int) int + func Power_Slow(a, b, m int) int + func PrintMemUsage() + func ReplaceString(str string, replacement rune, index int) string + func Retryfunc(taskname string, dotask retrylib_task, expected_duration time.Duration, ...) + func Retryproc(procname string, expected_duration time.Duration, max_wait time.Duration) + func ReverseString(s string) string + func RunFuncEveryXSeconds(fn fn_type, run_interval_seconds int) + func SetLogFile(filename string) *os.File + func String_to_int64(s string) (int64, error) + func Use(vals ...interface{}) + func Validate_Timestamp_Common(timestamp_unix int64) error + type Base53ErrorChecksumMismatch struct + func (e Base53ErrorChecksumMismatch) Error() string + type Base53ErrorIllegalCharacter struct + func (e Base53ErrorIllegalCharacter) Error() string + type Base53ErrorIllegalPair struct + func (e Base53ErrorIllegalPair) Error() string + type Base53ErrorStrWithoutCsumTooLong struct + func (e Base53ErrorStrWithoutCsumTooLong) Error() string + type Base53ErrorStrWithoutCsumTooShort struct + func (e Base53ErrorStrWithoutCsumTooShort) Error() string + type Base53ID interface + GetCombinedString func() string + GetCsum func() byte + GetStrWithoutCsum func() string + Length func() int + type Base53IDManager struct + func NewBase53IDManager() *Base53IDManager + func (b53m *Base53IDManager) B53_generate_all_Base53IDs(n int) ([]Base53ID, error) + func (b53m *Base53IDManager) B53_generate_all_Base53IDs_int64(n int) ([]uint64, error) + func (b53m *Base53IDManager) B53_generate_all_Base53IDs_int64_optimized(n int, should_be_added_fn ShouldBase53IDBePlacedIntoSliceFn) ([]uint64, error) + func (b53m *Base53IDManager) B53_generate_all_Base53IDs_int64_test(n int) ([]uint64, error) + func (b53m *Base53IDManager) B53_generate_next_Base53ID(old_id Base53ID) (Base53ID, error) + func (b53m *Base53IDManager) B53_generate_random_Base53ID(n int) (Base53ID, error) + func (b53m *Base53IDManager) Convert_uint64_to_Base53ID(bigendian_uint64 uint64, length int) (*_base53ID_impl, error) + func (b53m *Base53IDManager) Convert_uint64_to_byte_array(bigendian_uint64 uint64) []byte + func (b53m *Base53IDManager) NewBase53ID(str_without_csum string, csum byte, remap bool) (*_base53ID_impl, error) + type CryptoRandomChoiceEmptySliceError struct + func (e CryptoRandomChoiceEmptySliceError) Error() string + type NewBase53IDParams struct + Csum byte + Remap bool + Str_without_csum string + type ShouldBase53IDBePlacedIntoSliceFn func(string) bool + type ValidationResult struct + Message string + Success bool