exit

package
v0.0.0-...-e53fd9e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2020 License: MIT Imports: 3 Imported by: 0

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

func (c Code) HaltAnnotated(err error, note string)

HaltAnnotated terminates program execution with the receiver's exit code and an annotated error message.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL