package
0.5.1
Repository: https://github.com/tkw1536/goprogram.git
Documentation: pkg.go.dev

# Functions

AsError asserts that err is either nil or of type Error and returns it.
Die prints a non-nil err to io.Stderr and returns an error of type Error or nil.

# Constants

ExitCommandArguments indicates that the user attempted to pass invalid command-specific arguments to a subcommand.
ExitContext indicates an error with the underlying command context.
ExitGeneralArguments indicates that the user attempted to pass invalid general arguments to the program.
ExitGeneric indicates a generic error occurred within this invocation.
ExitPanic indicates that the go code called panic() inside the execution of the current program.
ExitUnknownCommand indicates that the user attempted to call a subcommand that is not defined.
ExitZero indicates that no error occurred.

# Structs

Error represents any error state by a program.

# Type aliases

ExitCode determines the exit behavior of a program.