failfast

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Failfast

func Failfast(err error, level ErrorLevel, message string)

Types

type ErrorLevel

type ErrorLevel int
const (
	Ignore   ErrorLevel = iota // do nothing, just log
	Warn                       // log a Warning
	Error                      // log an Error and exit with code 1
	Critical                   // log a Critical error and exit with code 1
	Panic                      // log a Panic error and Panic

)

Jump to

Keyboard shortcuts

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