Back to godoc.org
func Exit(err error)
Exit is a convenience function that calls os.Exit with the exit code associated with err.
Get gets the exit code associated with an error. Cases:
nil => 0 errors implementing Coder => value returned by ExitCode flag.ErrHelp => 2 all other errors => 1
Package Files ¶
Documentation was rendered with GOOS=linux and GOARCH=amd64.