Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Capture ¶
Capture runs errF and assigns the error, if any, to *err. Preserves the original err by wrapping in a MultiError if err is non-nil. If msg is not empty, wrap the error returned by closer with the msg.
- If errF returns nil, do nothing.
- If errF returns an error and *err == nil, replace *err with the error.
- If errF returns an error and *err != nil, replace *err with a MultiError containing *err and the errF err.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.