errorsutil

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(err error, str string) error

Append adds additional text to an existing error.

func Join

func Join(inclNils bool, errs ...error) error

func PanicOnErr

func PanicOnErr(err error)

PanicOnErr is a syntactic sugar function to panic on error.

Types

type ErrorInfo

type ErrorInfo struct {
	Error   error
	Code    string
	Display string
	Input   string
	Correct string
}

Jump to

Keyboard shortcuts

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