Versions in this module Expand all Collapse all v3 v3.0.6 Jun 20, 2026 v3.0.5 Jun 13, 2026 Changes in this version + var DefaultYeast = NewYeast() + var ErrEmptyURI = errors.New("URI must not be empty") + var ErrUnsupportedScheme = errors.New("unsupported URI scheme") + func Base64Id() *base64Id + func CheckInvalidHeaderChar(val string) bool + func CleanPath(p string) string + func ClearInterval(timer *Timer) + func ClearTimeout(timer *Timer) + func Contains(haystack string, needles []string) string + func IsValidSid(sid string) bool + func Is[T any](val any) bool + func Log() *log.Log + func MapValues[K comparable, I any, O any](input map[K]I, transform func(I) O) map[K]O + func MsgPack() *msgPack + func NewUtf8Decoder(r io.Reader) io.Reader + func NewUtf8Encoder(w io.Writer) io.Writer + func Ptr[T any](v T) *T + func StripHostPort(h string) string + func Tap[T any](value T, callback func(T)) T + func TryCast[T any](val any) T + func Utf16Count(src []byte) (n int) + func Utf16CountString(src string) (n int) + func Utf16Len(v rune) int + func Utf8decodeBytes(src []byte) []byte + func Utf8decodeString(byteString string) string + func Utf8encodeBytes(src []byte) []byte + func Utf8encodeString(src string) string + func Value(value string, _default string) string + func YeastDate() string + type Backoff struct + func NewBackoff(opts ...BackoffOption) *Backoff + func (b *Backoff) Attempts() uint64 + func (b *Backoff) Duration() int64 + func (b *Backoff) GetFactor() float64 + func (b *Backoff) GetJitter() float64 + func (b *Backoff) GetMax() float64 + func (b *Backoff) GetMin() float64 + func (b *Backoff) Reset() + func (b *Backoff) SetFactor(val float64) + func (b *Backoff) SetJitter(val float64) + func (b *Backoff) SetMax(val float64) + func (b *Backoff) SetMin(val float64) + type BackoffOption func(*Backoff) + func WithFactor(factor float64) BackoffOption + func WithJitter(jitter float64) BackoffOption + func WithMax(max float64) BackoffOption + func WithMin(min float64) BackoffOption + type ParsedUrl struct + Hostname string + Id string + Port string + func Url(uri string, path string) (parsedUrl *ParsedUrl, err error) + type Timer struct + func SetInterval(fn func(), sleep time.Duration) *Timer + func SetTimeout(fn func(), sleep time.Duration) *Timer + func (t *Timer) Refresh() *Timer + func (t *Timer) Stop() + func (t *Timer) Unref() + type Yeast struct + func NewYeast() *Yeast + func (y *Yeast) Decode(str string) (int64, error) + func (y *Yeast) Encode(num int64) string + func (y *Yeast) Yeast() string