package
Version:
v0.20.0
Opens a new window with list of versions in this module.
Published: Jan 11, 2016
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Fatal logs the error and exists the program with os.Exit(1).
Log just calls LogWith(err, log.V(log.Info)).
LogError is a wrapper that calls Log(NewError(task, err)).
LogErrorWithHint is a wrapper that calls Log(NewErrorWithHint(task, err, hint)).
LogWith logs the given error using the given logger.
RootCause returns the error deepest in the error chain.
Wrap is equal to
if err == nil { return nil } else { return NewError(task, err) }
It is particularly handy to get rid of all these if statements
when you want to wrap and error in Err in case the error is not nil.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.