Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Code ¶
type Code int
Code represents a program termination exit code.
const ( ExitOK Code = 0 ExitFlagsNotParsed Code = 1 ExitCLINotStarted Code = 2 ExitShellNotCreated Code = 3 )
Constant enumerated values of type Code.
func (Code) Halt ¶
func (c Code) Halt()
Halt terminates program execution with the receiver's exit code.
func (Code) HaltAnnotated ¶
HaltAnnotated terminates program execution with the receiver's exit code and an annotated error message.
Click to show internal directories.
Click to hide internal directories.