Documentation
¶
Index ¶
- type Result
- func Bind[A, B any, R Result[A]](result R, fn func(A) Result[B]) Result[B]
- func Error[T any](err error) Result[T]
- func ErrorString[T any](text string) Result[T]
- func Errorf[T any](format string, a ...any) Result[T]
- func Map[A, B any, R Result[A]](result R, fn func(A) B) Result[B]
- func Ok[T any](t T) Result[T]
- type Result2
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
func ErrorString ¶
Click to show internal directories.
Click to hide internal directories.