golerror

package
v0.0.0-...-1bfd785 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BoohooType = os.Getenv("BOOHOO")
)

Functions

func Boohoo

func Boohoo(errstring string, rise bool)

Boohoo prints provided error message and panics if rise value is True.

func Error

func Error(exitcode int, msg string) error

Types

type CustomError

type CustomError struct {
	ExitCode    int
	ExitMessage string
}

func (*CustomError) Error

func (e *CustomError) Error() string

Jump to

Keyboard shortcuts

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