Documentation ¶
Overview ¶
Package much provides generic helpers to ensure values are returned
Used as wrappers around functions that return (value, error) to always return a value
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllOrDefault ¶ added in v1.1.0
func AllOrDefault[T any](v []T, defaultValue T) (t []T)
func FirstOrDefault ¶
func FirstOrDefault[T any](v []T, defaultValue T) (t T)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.