Documentation ¶
Index ¶
Constants ¶
View Source
const (
ErrGeneric = 99
)
Variables ¶
This section is empty.
Functions ¶
func MustErrorNilOrExit ¶
func MustErrorNilOrExit(err error)
MustErrorNilOrExit will check the provided argument. If it's `nil` it will simply return. If it's not `nil`, it will log the rrror as `log.FatalLevel` and exit immediately with provided error code. Error code is unwrapped from `flags.Error` object. If it's a different kind of error, a generic error code - 99 - is returned
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.