errorsmanagement

package
v0.3.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package errorsmanagement contains all utility function to use in case of errors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Must

func Must(err error) bool

Must wraps a function call that can return an error. If some error occurred Must has two possible behaviors: panic if debug = true or log the error and return false in order to recover the error. Returns true if no error occurred.

func SetPanicOnErrorMode

func SetPanicOnErrorMode(status bool)

SetPanicOnErrorMode can be used to set or unset the panic mode.

Types

This section is empty.

Jump to

Keyboard shortcuts

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