Versions in this module Expand all Collapse all v3 v3.0.1 Jun 9, 2024 Changes in this version + func ToTuple[T any](result Result[T]) (T, error) + type Result struct + func Err[T any](value error) Result[T] + func Ok[T any](value T) Result[T] + func ToResult[T any](value T, err error) Result[T] + func (result Result[T]) AssertErr() + func (result Result[T]) AssertOk() + func (result Result[T]) IsErr() bool + func (result Result[T]) IsOk() bool + func (result Result[T]) Match(okHandler func(T), errHandler func(error)) + func (result Result[T]) MustGetErr() error + func (result Result[T]) MustGetOk() T + func (result Result[T]) ToEither() choice.Choice[T, error] + func (result Result[T]) Try(f func() (T, error)) Result[T] + func (result Result[T]) TryT(f func() (T, error)) Result[T]