Skip to content

wavesoftware/go-retcode

Repository files navigation

retcode package for Go

Deterministic process exit codes based on Go errors.

Usage

err := fmt.Errorf("example error")
os.Exit(retcode.Calc(err))