Documentation
¶
Overview ¶
Package decorate contains various helpers to decorate errors with fewer lines of code in functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogFuncOnError ¶
func LogFuncOnError(f func() error)
LogFuncOnError logs only any errors returned by f without failing.
func LogFuncOnErrorContext ¶
LogFuncOnErrorContext logs only error returned by f without failing. It takes a context.
func LogOnErrorContext ¶
LogOnErrorContext logs any errors without failing. It takes a context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.