Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func All ¶
All aggregates multiple errors into one (filters nil). Returns nil if all inputs are nil.
func DeferRecover ¶
func DeferRecover(handler func(any))
DeferRecover is used in defer to catch panics and pass them to handler. Example:
defer util.DeferRecover(func(e any){ logger.Error().Any("panic", e).Msg("recovered") })
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.