package
Version:
v0.46.1
Opens a new window with list of versions in this module.
Published: May 16, 2025
License: GPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func ExitOnErr(err error)
ExitOnErr writes error to os.Stderr and calls os.Exit with passed exit code or by default 1.
Does nothing if err is nil.
type ExitErr struct {
Code int
Cause error
}
ExitErr specific error for ExitOnErr function that passes the exit code and error caused.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.