Versions in this module Expand all Collapse all v3 v3.0.0 Nov 1, 2024 Changes in this version + type Result struct + func Error[T any](err error) Result[T] + func Ok[T any](value T) Result[T] + func (r Result[T]) Expect(msg string) T + func (r Result[T]) ExpectErr(msg string) error + func (r Result[T]) IsErr() bool + func (r Result[T]) IsOk() bool + func (r Result[T]) Unwrap() T + func (r Result[T]) UnwrapErr() error + func (r Result[T]) UnwrapOr(def T) T + func (r Result[T]) UnwrapOrDefault() T + func (r Result[T]) UnwrapOrElse(fn func(error) T) T