GitHunt
CO

Error makes exit code meaningful

exit

Error makes exit code meaningful

GoDoc
Build Status
Coverage Status
Go Report Card

Description

Inspired from sysexits.h and created it.
The following are quoted contents from manpage of the sysexits.h.

According to style(9), it is not a good practice to call exit(3) with
arbitrary values to indicate a failure condition when ending a program.
Instead, the pre-defined exit codes from sysexits should be used, so the
caller of the process can get a rough estimation about the failure class
without looking up the source code.

You can read example.
And if you want to know more details, please read here.

Install

go get github.com/Code-Hex/exit

Contributing

Welcome!!
I'm waiting for pull requests or reporting issues.

License

MIT

Author

CodeHex

Languages

Go100.0%

Contributors

MIT License
Created May 24, 2017
Updated July 13, 2019