Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

exitcode_go

Go constants for libc, LSB, BSD, and systemd exit codes, based on this list compiled in the systemd docs.

Installation

go get github.com/cdzombak/exitcode_go

Usage

import (
	"os"

	exitcode "github.com/cdzombak/exitcode_go"
)

func main() {
	if len(os.Args) < 2 {
		os.Exit(exitcode.Usage)
	}
	os.Exit(exitcode.Success)
}

Generated code

generated.go is generated by cdzombak/exitcodes and should never be edited by hand. To change an exit code or add a new one, edit exitcodes.tsv in that repo; a pull request will be opened here automatically with the regenerated file.

License

MIT; see LICENSE.

Author

Chris Dzombak (dzombak.com; GitHub @cdzombak).

About

Codegenerated Golang constants for libc, LSB, BSD, and systemd exit codes

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages