Versions in this module Expand all Collapse all v0 v0.1.0 Oct 10, 2026 Changes in this version + func IsNilError[T Error](err T) bool + func RaiseErr(err error) bool + func RaiseNilErr(err error) bool + func RaiseVal[T any](t T, e error) T + type ByteStringConstraint interface + type ComplexConstraint interface + type DefaultError struct + func NewError(name, message string, args ...any) *DefaultError + func (this *DefaultError) AddAttribute(key string, value any) + func (this *DefaultError) AddAttributes(attr ...any) + func (this *DefaultError) Error() string + func (this *DefaultError) Format(state fmt.State, verb rune) + func (this *DefaultError) GomegaString() string + func (this *DefaultError) Log(level slog.Level, args ...any) + func (this *DefaultError) LogError(args ...any) + func (this *DefaultError) LogErrorWithStackTrace(args ...any) + func (this *DefaultError) LogWithStackTrace(level slog.Level, args ...any) + func (this *DefaultError) MarshalJSON() ([]byte, error) + func (this *DefaultError) Message() string + func (this *DefaultError) Name() string + func (this *DefaultError) PrintStacktrace(out io.Writer) + type Enum struct + func (this *Enum[T]) From(text string) error + func (this *Enum[T]) Scan(src any) error + func (this *Enum[T]) UnmarshalJSON(data []byte) error + func (this *Enum[T]) UnmarshalText(text []byte) error + func (this Enum[T]) Compare(that Enum[T]) int + func (this Enum[T]) MarshalJSON() ([]byte, error) + func (this Enum[T]) MarshalText() ([]byte, error) + func (this Enum[T]) Name() string + func (this Enum[T]) New() T + func (this Enum[T]) Ordinal() int + func (this Enum[T]) String() string + func (this Enum[T]) Value() (driver.Value, error) + type EnumStringer interface + ToString func(Enum[T]) string + type Error interface + AddAttribute func(key string, value any) + AddAttributes func(attr ...any) + Error func() string + Format func(state fmt.State, verb rune) + GomegaString func() string + Log func(level slog.Level, args ...any) + LogError func(args ...any) + LogErrorWithStackTrace func(args ...any) + LogWithStackTrace func(level slog.Level, args ...any) + MarshalJSON func() ([]byte, error) + Message func() string + Name func() string + PrintStacktrace func(out io.Writer) + func NewErrorFrom(err error) Error + func NewWrappedError(name string, err error, args ...any) Error + func Try(try func(), catches ...ErrorHandler) Error + type ErrorHandler interface + Catch func(err Error) Error + Supports func(err Error) bool + func CatchName(name string, action func(Error) Error) ErrorHandler + func Catch[E Error](action func(E) Error) ErrorHandler + func Finally(action func()) ErrorHandler + type Exception = Error + type FloatConstraint interface + type IndexOutOfBoundsError struct + func NewIndexOutOfBoundsError(message string) *IndexOutOfBoundsError + type IntegerConstraint interface + type LowerEnumStringer struct + func (this LowerEnumStringer[T]) ToString(value Enum[T]) string + type NilError struct + func (this *NilError) AddAttribute(_ string, _ any) + func (this *NilError) AddAttributes(_ ...any) + func (this *NilError) Error() string + func (this *NilError) Format(_ fmt.State, _ rune) + func (this *NilError) GomegaString() string + func (this *NilError) Log(_ slog.Level, _ ...any) + func (this *NilError) LogError(_ ...any) + func (this *NilError) LogErrorWithStackTrace(_ ...any) + func (this *NilError) LogWithStackTrace(_ slog.Level, _ ...any) + func (this *NilError) MarshalJSON() ([]byte, error) + func (this *NilError) Message() string + func (this *NilError) Name() string + func (this *NilError) PrintStacktrace(_ io.Writer) + type Optional struct + func OptionalEmpty[T any]() Optional[T] + func OptionalOfNullable[T any](value any) Optional[T] + func OptionalOf[T any](value T) Optional[T] + func (this *Optional[T]) SetValue(value any) Error + func (this Optional[T]) FlatMap(mapper func(T) Optional[T]) Optional[T] + func (this Optional[T]) Get() (T, bool) + func (this Optional[T]) IfPresent(action func(T)) + func (this Optional[T]) IfPresentOrElse(action func(T), empty func()) + func (this Optional[T]) IsEmpty() bool + func (this Optional[T]) IsPresent() bool + func (this Optional[T]) Map(mapper func(T) T) Optional[T] + func (this Optional[T]) OrElse(other T) T + func (this Optional[T]) OrElseGet(supplier func() T) T + func (this Optional[T]) Type() reflect.Type + type OrderedConstraint interface + type PanicError struct + func NewPanicError(message string) *PanicError + type PatternSyntaxError struct + func NewPatternSyntaxError(message string) *PatternSyntaxError + type SignedConstraint interface + type String string + func (this String) Basename() String + func (this String) CharAt(index int) (byte, Error) + func (this String) CodePointAt(index int) (rune, Error) + func (this String) CompareTo(a string) int + func (this String) Concat(a string) String + func (this String) Contains(a string) bool + func (this String) EndsWith(suffix string) bool + func (this String) Equals(a string) bool + func (this String) EqualsToIgnoreCase(a string) bool + func (this String) Format(args ...any) String + func (this String) GetBytes() []byte + func (this String) IndexOf(char rune) int + func (this String) IsBlank() bool + func (this String) IsEmpty() bool + func (this String) Length() int + func (this String) Matches(regex string) (bool, Error) + func (this String) RegionMatches(ignoreCase bool, toffset int, other string, ooffset, length int) bool + func (this String) Replace(target, replacement string) String + func (this String) ReplaceAll(pattern, replacement string) (String, Error) + func (this String) ReplaceFirst(pattern, replacement string) (String, Error) + func (this String) ReplaceRune(oldChar, newChar rune) String + func (this String) Split(pattern string) ([]string, Error) + func (this String) SplitN(pattern string, limit int) ([]string, Error) + func (this String) StartsWith(prefix string) bool + func (this String) String() string + func (this String) Strings() Strings + func (this String) Substring(start int) String + func (this String) SubstringOffset(start, end int) String + func (this String) ToCharArray() []rune + func (this String) ToLowerCase() String + func (this String) ToUpperCase() String + func (this String) Trim() String + type Strings string + func ToStrings[S ByteStringConstraint](s S) Strings + func (s Strings) Compare(a string) int + func (s Strings) Contains(substr string) bool + func (s Strings) ContainsAny(chars string) bool + func (s Strings) ContainsFunc(f func(rune) bool) bool + func (s Strings) ContainsRune(r rune) bool + func (s Strings) Count(substr string) int + func (s Strings) Cut(sep string) (before, after string, found bool) + func (s Strings) CutPrefix(prefix string) (after string, found bool) + func (s Strings) CutSuffix(suffix string) (before string, found bool) + func (s Strings) EqualFold(t string) bool + func (s Strings) Fields() []string + func (s Strings) FieldsFunc(f func(rune) bool) []string + func (s Strings) HasPrefix(prefix string) bool + func (s Strings) HasSuffix(suffix string) bool + func (s Strings) Index(substr string) int + func (s Strings) IndexAny(char string) int + func (s Strings) IndexByte(c byte) int + func (s Strings) IndexFunc(f func(rune) bool) int + func (s Strings) IndexRune(r rune) int + func (s Strings) LastIndex(substr string) int + func (s Strings) LastIndexAny(chars string) int + func (s Strings) LastIndexByte(c byte) int + func (s Strings) LastIndexFunc(f func(rune) bool) int + func (s Strings) Map(mapping func(rune) rune) string + func (s Strings) Repeat(count int) string + func (s Strings) Replace(old, replacement string, n int) string + func (s Strings) ReplaceAll(old, replacement string) string + func (s Strings) Split(sep string) []string + func (s Strings) SplitAfter(sep string) []string + func (s Strings) SplitAfterN(sep string, n int) []string + func (s Strings) SplitN(sep string, n int) []string + func (s Strings) String() string + func (s Strings) ToLower() string + func (s Strings) ToLowerSpecial(c unicode.SpecialCase) string + func (s Strings) ToString() String + func (s Strings) ToUpper() string + func (s Strings) ToUpperSpecial(c unicode.SpecialCase) string + func (s Strings) ToValidUTF8(replacement string) string + func (s Strings) Trim(cutset string) string + func (s Strings) TrimFunc(f func(rune) bool) string + func (s Strings) TrimLeft(cutset string) string + func (s Strings) TrimLeftFunc(f func(rune) bool) string + func (s Strings) TrimPrefix(prefix string) string + func (s Strings) TrimRight(cutset string) string + func (s Strings) TrimRightFunc(f func(rune) bool) string + func (s Strings) TrimSpace() string + func (s Strings) TrimSuffix(suffix string) string + type TitleEnumStringer struct + func (this TitleEnumStringer[T]) ToString(value Enum[T]) string + type UnsignedConstraint interface + type WrappedError struct + func (this *WrappedError) Unwrap() error