Documentation
¶
Index ¶
- func FlatMapOk[T, U any](r mo.Result[T], f func(T) mo.Result[U]) mo.Result[U]
- func MapOk[T, U any](r mo.Result[T], f func(T) U) mo.Result[U]
- func Tap[T any](result mo.Result[T], effect func(T)) mo.Result[T]
- func Then[T, U any](r mo.Result[T], f func(T) mo.Result[U]) mo.Result[U]
- func Then2[T, U, V any](r mo.Result[T], f func(T) mo.Result[U], g func(U) mo.Result[V]) mo.Result[V]
- func Then3[T, U, V, W any](r mo.Result[T], f func(T) mo.Result[U], g func(U) mo.Result[V], ...) mo.Result[W]
- func Then4[T, U, V, W, X any](r mo.Result[T], f func(T) mo.Result[U], g func(U) mo.Result[V], ...) mo.Result[X]
- func ToPtrResult[T any](r mo.Result[T]) mo.Result[*T]
- func ToValue[T any](r mo.Result[*T]) (*T, fault.Fault)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FlatMapOk ¶ added in v0.1.6
FlatMapOk applies a function that returns a Result to the Ok value of a Result.
func Tap ¶ added in v0.1.7
Tap executes a side-effect function on success without modifying the result
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.