github.com/uber-go/multierr (go): Package multierr allows combining one or more errors together.  Errors can be combined with the use of the Combine function.  If only two errors are being combined, the Append function may be used instead.  This makes it possible to record resource cleanup failures from deferred blocks with the help of named return values.  The underlying list of errors for a returned error object may be retrieved with the Errors function.  Errors returned by Combine and Append MAY implement the following interface.  Note that if you need access to list of errors behind a multierr error, you should prefer using the Errors function. That said, if you need cheap read-only access to the underlying errors slice, you can attempt to cast the error to this interface. You MUST handle the failure case gracefully because errors returned by Combine and Append are not guaranteed to implement this interface.
Keywords: errors|go|golang