Versions in this module Expand all Collapse all v1 v1.1.0 Jul 10, 2025 Changes in this version type Result + func (r Result[T]) Errorf(format string, a ...any) Result[T] + func (r Result[T]) UnwrapError() error v1.0.0 Jun 11, 2025 Changes in this version + type Result struct + func AndThen[T any, U any](r Result[T], f andThenFunc[T, U]) Result[U] + func Err[T any](err error) Result[T] + func Map[T any, U any](r Result[T], f func(T) U) Result[U] + func Ok[T any](val T) Result[T] + func (r Result[T]) Expect(msg string) T + func (r Result[T]) Inspect(f func(T)) Result[T] + func (r Result[T]) IsErr() bool + func (r Result[T]) IsOk() bool + func (r Result[T]) Map(f func(T) T) Result[T] + func (r Result[T]) MapErr(f func(error) error) Result[T] + func (r Result[T]) MustUnwrap() T + func (r Result[T]) Or(other Result[T]) Result[T] + func (r Result[T]) OrElse(f func() Result[T]) Result[T] + func (r Result[T]) ToPtr() *T + func (r Result[T]) Unwrap() (T, error) + func (r Result[T]) UnwrapOr(def T) T + func (r Result[T]) UnwrapOrElse(f func() T) T