Documentation ¶
Index ¶
- func Configure[T any, O Option[T]](input T, opt ...O) T
- func ConfigurePtr[T any, O Option[T]](input *T, opt ...O) *T
- func ConfigurePtrWithError[T any, O OptionError[T]](input *T, opt ...O) (*T, error)
- func ConfigureWithError[T any, O OptionError[T]](input T, opt ...O) (T, error)
- func Filter[T any, A ~[]T](input A, filter func(elem T) bool) A
- func Map[T any, A ~[]T, O any](input A, mapper func(elem T) O) []O
- func SetLog(level slog.Level)
- type Option
- type OptionError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigurePtr ¶
func ConfigurePtrWithError ¶
func ConfigurePtrWithError[T any, O OptionError[T]](input *T, opt ...O) (*T, error)
func ConfigureWithError ¶
func ConfigureWithError[T any, O OptionError[T]](input T, opt ...O) (T, error)
Types ¶
type OptionError ¶
Click to show internal directories.
Click to hide internal directories.