exit

package
v2.0.0-...-4b7107c Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GeneralError   = 1
	InvalidCommand = 2
	InvalidInput   = 3

	MissingArg     = 10
	UnknownCommand = 11
	MissingColor   = 13

	NotFound = 20

	LockCreateFailed = 98
	FailedToFreeLock = 99
)

Variables

This section is empty.

Functions

func OnCondition

func OnCondition(condition bool, code int, err string, usage string)

OnCondition - A standard way to quickly terminate a program.

func OnError

func OnError(err error, code int, usage string)

OnError - A standard way to safely terminate on error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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