# Functions
CrashOnError is an alternative to `Must`.
IfThenElse is a ternary operator function that will return `a` if `cond` is true, otherwise it will return `b`.
IgnoreError is useful when you want to defer a func that returns an error, but ignore the error.
InvertMap inverts a map, returning a map mapping each value contained in the original map to a key that mapped to said value in the original map.
InvertSlice inverts a slice, returning a map mapping each element in the slice to the _last_ index it occurs at.
Must panics if any of the given errors is non-nil, and does nothing otherwise.
Should wraps ShouldErr without returning the error.
ShouldErr panics on development builds and logs on release builds The expectation is that this function will be called with an error wrapped by errors.Wrap so that tracing is easier.