exit

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: Apache-2.0 Imports: 2 Imported by: 27

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExitFromError

func ExitFromError(code int, err error)

func ExitOrDieFromError

func ExitOrDieFromError(code int, err error, isSoftConditions ...bool)

func HandleExit

func HandleExit()

logic should equal to utilstest.TestHandleExit func

Types

type Exit

type Exit struct {
	Code int
	Msg  string
	Soft bool
}

func (Exit) Error

func (e Exit) Error() string

func (Exit) IsSoft

func (e Exit) IsSoft() bool

Jump to

Keyboard shortcuts

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