handle

package
v2.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 4, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogFatalf = log.Fatalf

LogFatalf is used to define the fatal error handler function. In unit tests, this is used to mock out fatal errors so we can test for them.

Functions

func Error

func Error(err error)

Error extracts the if err != nil check. If the given error is not nil it will call the defined fatal error handler function.

func Fatal

func Fatal(s string, err error)

Fatal is a wrapper for LogFatalf function. It's used to throw a Fatal in case it needs to.

Types

This section is empty.

Jump to

Keyboard shortcuts

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