/go-retcode

Deterministic process exit codes

Primary LanguageGoApache License 2.0Apache-2.0

retcode package for Go

Deterministic process exit codes based on Go errors.

Usage

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