/dontpanic

Panic-free alternatives to common Go operations

Primary LanguageGoMIT LicenseMIT

dontpanic

Panic-free alternatives to common Go operations.

Installation

go get github.com/phelmkamp/dontpanic

Usage

func f() (err error) {
    defer dontpanic.Recover(&err)
    // do stuff that might panic...
}