util

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrGeneric = 99
)

Variables

This section is empty.

Functions

func MustErrorNilOrExit

func MustErrorNilOrExit(err error)

MustErrorNilOrExit will check the provided argument. If it's `nil` it will simply return. If it's not `nil`, it will log the rrror as `log.FatalLevel` and exit immediately with provided error code. Error code is unwrapped from `flags.Error` object. If it's a different kind of error, a generic error code - 99 - is returned

Types

This section is empty.

Directories

Path Synopsis
Package bitstream is a simple wrapper around a io.Reader and io.Writer to provide bit-level access to the stream.
Package bitstream is a simple wrapper around a io.Reader and io.Writer to provide bit-level access to the stream.

Jump to

Keyboard shortcuts

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