Documentation ¶
Index ¶
- type Result
- func Bind[T, V any](r Result[T], fn func(T) Result[V]) Result[V]
- func Err[T any](err error) Result[T]
- func Error[T any](text string) Result[T]
- func Errorf[T any](format string, a ...any) Result[T]
- func From[T any](v T, err error) Result[T]
- func Id[T any](r Result[T]) Result[T]
- func Map[T, V any](r Result[T], fn func(T) V) Result[V]
- func Ok[T any](v T) Result[T]
- type Result2
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.