Versions in this module Expand all Collapse all v1 v1.3.5 Sep 6, 2026 v1.3.4 Sep 6, 2026 Changes in this version + const CGOEnabled + func AddSingleQuotes(s []string) []string + func AppendSlices[T any](slices ...[]T) []T + func Belongs[T comparable](input []T, elem T) bool + func CleanupString(s string) string + func CleanupStrings(s []string) []string + func DeleteIndex[S ~[]E, E any](s S, i int) S + func Detach(ctx context.Context) context.Context + func DirExists(dirName string) bool + func Err(errors ...error) error + func ExpandHome(path string) string + func FileExists(filename string) bool + func FindErrorLogs(rootDirs ...string) + func FormatAmount(amount *big.Int, decimals uint8) string + func GetAPIContext() (context.Context, context.CancelFunc) + func GetAPILargeContext() (context.Context, context.CancelFunc) + func GetSHA256FromDisk(binPath string) (string, error) + func GetStacktrace(all bool) string + func GetTimedContext(timeout time.Duration) (context.Context, context.CancelFunc) + func IsSortedAndUniqueByHash[T ~[]byte](s []T) bool + func IsSortedAndUniqueOrdered[T cmp.Ordered](s []T) bool + func IsSortedAndUnique[T Sortable[T]](s []T) bool + func IsSortedBytes[T ~[]byte](s []T) bool + func IsSubPath(childPath, parentPath string) bool + func Map[T, U any](input []T, f func(T) U) []U + func PointersSlice[T any](values []T) []*T + func RandomBytes(n int) []byte + func RetryWithContextGen[T any](ctxGen func() (context.Context, context.CancelFunc), ...) (T, error) + func Retry[T any](fn func() (T, error), maxAttempts int, retryInterval time.Duration) (T, error) + func SearchSHA256File(file []byte, toSearch string) (string, error) + func SortByHash[T ~[]byte](s []T) + func Sort[T Sortable[T]](s []T) + func SplitComaSeparatedInt(s string) []int + func SplitComaSeparatedString(s string) []string + func SplitStringWithQuotes(str string, r rune) []string + func TrimHexa(s string) string + func Uint32Sort(arr []uint32) + func Unique[T comparable](arr []T) []T + func WrapContext[T any](f func() (T, error)) func(context.Context) (T, error) + func Zero[T any]() T + type Atomic = atomic.Atomic[T] + func NewAtomic[T any](value T) *Atomic[T] + type BytesPool [intSize]sync.Pool + func NewBytesPool() *BytesPool + func (p *BytesPool) Get(length int) *[]byte + func (p *BytesPool) Put(bytes *[]byte) + type Sortable interface + Compare func(T) int