Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResultToErrorOption ¶
Types ¶
type OptionTypeConverter ¶
type OptionTypeConverter[T1 any, T2 any] interface { Then(call func(T1) types.Option[T2]) types.Option[T2] }
func OptionType ¶
func OptionType[T1 any, T2 any](option types.Option[T1]) OptionTypeConverter[T1, T2]
type ResultTypeConverter ¶
type ResultTypeConverter[T1 any, T2 any] interface { Then(call func(T1) types.Result[T2]) types.Result[T2] }
func ResultType ¶
func ResultType[T1 any, T2 any](result types.Result[T1]) ResultTypeConverter[T1, T2]
Click to show internal directories.
Click to hide internal directories.