Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogVarsErr ¶
func NewVarsErr ¶
Types ¶
type VarsErr ¶
type VarsErr errorsx.CustomErr[VarsErrInfo]
VarsErr is a type of error that allows to put a map of any states (variables) as an additional info to your errors. That can be useful for structured logging.
This package provides LogVarsErr function that allows to easily log that type of errors using slog
type VarsErrInfo ¶
Click to show internal directories.
Click to hide internal directories.