Versions in this module Expand all Collapse all v0 v0.1.0 Apr 17, 2025 v0.0.2 Mar 27, 2025 Changes in this version + func Detach(ctx context.Context) context.Context + func Err(errors ...error) error + func GetStacktrace(all bool) string + 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 RandomBytes(n int) []byte + func SortByHash[T ~[]byte](s []T) + func Sort[T Sortable[T]](s []T) + func ZeroSlice[T any](s []T) + func Zero[T any]() T + type Atomic struct + func NewAtomic[T any](value T) *Atomic[T] + func (a *Atomic[T]) Get() T + func (a *Atomic[T]) MarshalJSON() ([]byte, error) + func (a *Atomic[T]) Set(value T) + func (a *Atomic[T]) UnmarshalJSON(b []byte) error + 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