Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseWithErrCapture ¶
func CloseWithErrCapture(err *error, closer io.Closer, msg string)
CloseWithErrCapture closes closer and wraps any error with the provided message and assigns it to err.
func CloseWithLogOnErr ¶
func CloseWithLogOnErr(logger log.Logger, closer io.Closer, format string, args ...interface{})
CloseWithLogOnErr closes an io.Closer and logs any relevant error from it wrapped with the provided format string and args.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.