Documentation ¶
Index ¶
- func And[T any](predicateFuncs ...func(T) bool) func(T) bool
- func Compose[T1, T2, T3 any](f func(T1) T2, g func(T2) T3) func(T1) T3
- func Identity[T any](x T) T
- func Must[T any](result T, err error) T
- func MustNoErr(err error)
- func MustOk[T any](result T, ok bool) T
- func MustTrue(ok bool)
- func Not[T any](predicateFunc func(T) bool) func(T) bool
- func Or[T any](predicateFuncs ...func(T) bool) func(T) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func And ¶
And returns a new predicate function that would return true if all of the given predicate functions return true for the given value; false otherwise
func Compose ¶
func Compose[T1, T2, T3 any](f func(T1) T2, g func(T2) T3) func(T1) T3
Compose composes two compatible functions
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.