Documentation ¶
Index ¶
Constants ¶
View Source
const ( LogFormatLogfmt = "logfmt" LogFormatJSON = "json" LogLevelError = "error" LogLevelWarn = "warn" LogLevelInfo = "info" LogLevelDebug = "debug" )
Variables ¶
This section is empty.
Functions ¶
func CloseWithErrCapturef ¶
CloseWithErrCapturef runs function and on error return error by argument including the given error..
func CloseWithErrLogf ¶
CloseWithErrLogf is making sure we log every error, even those from best effort tiny closers.
Types ¶
type MultiError ¶
type MultiError struct {
// contains filtered or unexported fields
}
The MultiError type implements the error interface, and contains the Errors used to construct it.
func (*MultiError) Add ¶
func (me *MultiError) Add(err error)
Add adds the error to the error list if it is not nil.
func (*MultiError) Err ¶
func (me *MultiError) Err() error
Err returns the error list as an error or nil if it is empty.
func (*MultiError) Error ¶
func (me *MultiError) Error() string
Returns a concatenated string of the contained errors.
Click to show internal directories.
Click to hide internal directories.