# README
Package mustbe simplifies error handling. mustbe.OK* functions receives error argument and panics if is is not nil. mustbe.Catched/mustbe.CatchedAs functions handle these (and only these) panics.
See documentation on GoDoc
License: MIT
# Functions
Catched is a function for defer'ed use (see OK example).
CatchedAs catches mustbe.* error and assigns it to the targetError.
CatchedAs catches mustbe.* error, wraps it using the `fmt.Errorf(format, err)` and assigns the result to the targetError.
OK throws panic if err != nil.
OKOr throws panic if err not nil and not any of errs, oterwise returns err.
OKOrIs throws panic if err not nil and not "Is" (as in errors.Is) any of errs, oterwise returns err.
OKVal throws panic if err != nil, oterwise returns val.
Thrown is the synonym of OK.
True throws panic if test is not true.