Categorygithub.com/wavesoftware/go-retcode
modulepackage
1.0.0
Repository: https://github.com/wavesoftware/go-retcode.git
Documentation: pkg.go.dev

# README

retcode package for Go

Deterministic process exit codes based on Go errors.

Usage

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

# Functions

Calc will calculate an POSIX retcode from an error.

# Variables

LowerBound is the lower bound of the POSIX retcode range.
UpperBound is the upper bound of the POSIX retcode range.