[go: up one dir, main page]

Skip to content

Code-Hex/exit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages