fatalx

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2021 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package fatalx simplifies checking for errors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IfNil

func IfNil(ptr interface{}, msg string)

IfNil calls log.Fatal if ptr is nil

func OnError

func OnError(err error, msg string)

OnError calls log.Fatal if err is not nil

Types

This section is empty.

Jump to

Keyboard shortcuts

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