Code-Hex / exit

Error makes exit code meaningful

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Error makes exit code meaningful

License:MIT License


Languages

Language:Go 100.0%