Documentation ¶
Index ¶
- func DereferenceList[T any](ptrlist []*T) []T
- func Filter[I any](in []I, f func(I) bool) []I
- func FilterEmpty(in []string) []string
- func FlatMap[I, O any](in []I, f func(I) []O) []O
- func FlatMapWithError[I, O any](in []I, f func(I) ([]O, error)) ([]O, error)
- func Has[I any](in []I, f func(I) bool) bool
- func Map[I, O any](in []I, f func(I) O) []O
- func MapNonNil[I, O any](in []I, f func(I) *O) []O
- func MatchOne[I any](in []I, f func(I) bool) (*I, error)
- func Must[T any](t T, err error) T
- func PanicIfError(err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DereferenceList ¶
func DereferenceList[T any](ptrlist []*T) []T
func FilterEmpty ¶
TODO: what other generic things can we apply? is there lennable?
func FlatMapWithError ¶
func PanicIfError ¶
func PanicIfError(err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.