errutil

package
v0.0.0-...-b44688a Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(err error)

Check the supplied error, log and exit if non-nil.

func CheckWithContext

func CheckWithContext(err error, context string)

CheckWithContext checks error provided and if it is not nil then logs some information and terminates the program.

func PanicWithContext

func PanicWithContext(err error, context string)

PanicWithContext checks error provided and if it is not nil then logs some information and emits panic.

Types

This section is empty.

Jump to

Keyboard shortcuts

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