Documentation ¶
Index ¶
- Constants
- Variables
- func And(a, b bool) bool
- func Compose[T, U, V any](f func(T) U, g func(U) V) func(T) V
- func ComposeErr[T, U, V any](f func(T) (U, error), g func(U) (V, error)) func(T) (V, error)
- func Curry[T, U, V any](f func(T, U) V) func(T) func(U) V
- func CurryCtx[T, U any](f func(context.Context, T) (U, error)) func(context.Context) func(T) (U, error)
- func Error1st(ef []func() error) error
- func ErrorFlatMap[T, U any](t T, te error, f func(T) (U, error)) (u U, e error)
- func ErrorFromBool[T any](ok bool, okf func() (T, error), ngf func() error) (t T, err error)
- func ErrorFuncCreate[T, U any](f func(T) U) func(T) (U, error)
- func ErrorMap[T, U any](t T, te error, f func(T) U) (u U, e error)
- func ErrorOrElse(e error, ef func() error) error
- func ErrorTryForEach[T any](t T, e error, f func(T) error) error
- func Identity[T any](t T) T
- func IterCompose[T, U any](f func(T) U) func(Iter[T]) Iter[U]
- func IterComposeErr[T, U any](f func(T) (U, error)) func(Iter[T]) (Iter[U], error)
- func IterReduce[T, U any](i Iter[T], init U, reducer func(state U, item T) U) U
- func IterReduceErr[T, U any](i Iter[T], u1st U, f func(st U, t T) (U, error)) (u U, e error)
- func Opt2Err[T any](o T, hasValue bool, ng func() error) (t T, e error)
- func OptMap[T, U any](o T, hasValue bool, f func(T) U) (u U, nonEmpty bool)
- type Getter
- type Iter
- type Key
- type Kv
- type Lister
- type Reader2Bytes
- type Val
Constants ¶
View Source
const OptEmpty = false
View Source
const OptHasValue = true
Variables ¶
View Source
var ErrNotFound error = errors.New("key does not exist")
Functions ¶
func ComposeErr ¶
func ErrorFromBool ¶
func ErrorFuncCreate ¶
func ErrorOrElse ¶
func IterCompose ¶
func IterComposeErr ¶
func IterReduce ¶
func IterReduceErr ¶
Types ¶
type Iter ¶
func IterFromArr ¶
type Reader2Bytes ¶
var UnlimitedRead2Bytes Reader2Bytes = io.ReadAll
Source Files ¶
Click to show internal directories.
Click to hide internal directories.