exit

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear()

func SetExitWithError

func SetExitWithError(err error, message string)

Types

type CliExit

type CliExit struct {
	Err        error  `json:"err,omitempty"`
	ReturnCode int    `json:"return_code"`
	Message    string `json:"message,omitempty"`
}

func Get

func Get() *CliExit

func NewExit

func NewExit(err error, message string, returnCode int) *CliExit

func NewExitWithError

func NewExitWithError(err error, message string) *CliExit

func (*CliExit) String

func (e *CliExit) String() string

Jump to

Keyboard shortcuts

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