Nifty error handling for Golang

This library provides helper methods to dry up repetitive boilerplate around error checking in Golang.
Instead of:
import "log"
if err != nil {
log.Fatal(err)
}
you can write:
import "github.com/Originate/exit"
exit.If(err)
The IfWrap
and IfWrapf
functions wrap the given error
into the given error message using errors.Wrap
and errors.Wrapf:
exit.IfWrap(err, "something went wrong")
exit.IfWrapf(err, "%s", message)
This makes the most sense for critical errors in Go-based CLI tools,
but could be useful elsewhere.
Installation
go get github.com/Originate/exit
A gofix tool to change all compatible usages is available at exitfix.