Documentation ¶ Index ¶ type Type func Error[T any](err error) Type[T] func Map[T, U any](r Type[T], f func(T) U) Type[U] func MapError[T any](r Type[T], f func(err error) error) Type[T] func New[T any](v T) Type[T] func (s Type[T]) IsError() bool func (s Type[T]) MapError(f func(err error) error) Type[T] func (s Type[T]) Unwrap() (T, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Type ¶ type Type[T any] either.Type[T, error] func Error ¶ func Error[T any](err error) Type[T] func Map ¶ func Map[T, U any](r Type[T], f func(T) U) Type[U] func MapError ¶ func MapError[T any](r Type[T], f func(err error) error) Type[T] func New ¶ func New[T any](v T) Type[T] func (Type[T]) IsError ¶ func (s Type[T]) IsError() bool func (Type[T]) MapError ¶ func (s Type[T]) MapError(f func(err error) error) Type[T] func (Type[T]) Unwrap ¶ func (s Type[T]) Unwrap() (T, error) Source Files ¶ View all Source files result.go Click to show internal directories. Click to hide internal directories.