errutil

package
v0.0.0-...-b60b6a8 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fail

func Fail(msg string)

Fail logs the given messages and terminates the application

func FailOn

func FailOn(err error)

FailOn logs the error information and terminates the application if there's an error

func FailOnWithInfo

func FailOnWithInfo(err error, info map[string]string)

FailOnWithInfo logs the error information with additional context info and terminates the application if there's an error

func FailWhen

func FailWhen(cond bool, msg string)

FailWhen logs the given message if the condition is true (terminates the application)

func WarnOn

func WarnOn(err error)

WarnOn logs the error information as a warning

Types

This section is empty.

Jump to

Keyboard shortcuts

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