errutil

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2017 License: MIT Imports: 1 Imported by: 0

README

errutil Build Status

import "github.com/pborzenkov/errutil"

Overview

Package errutil provides miscellaneous utilities to work with errors

Index

Package files

bug_debug.go doc.go errutil.go

func Bug

func Bug(format string, msg ...interface{})

Bug causes panic with formatted message msg. Does nothing when built with 'release' or 'nodebug' tag.

func BugOn

func BugOn(cond bool, format string, msg ...interface{})

BugOn causes panic with formatted message msg if cond is true. Does nothing when built with 'release' or 'nodebug' tag.

func FatalIf

func FatalIf(err error)

FatalIf panics if err is not nil.

func First

func First(errs ...error) error

First returns first non-nil error out of errs, or nil.


Generated by godoc2md

Documentation

Overview

Package errutil provides miscellaneous utilities to work with errors

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bug

func Bug(format string, msg ...interface{})

Bug causes panic with formatted message msg. Does nothing when built with 'release' or 'nodebug' tag.

func BugOn

func BugOn(cond bool, format string, msg ...interface{})

BugOn causes panic with formatted message msg if cond is true. Does nothing when built with 'release' or 'nodebug' tag.

func FatalIf

func FatalIf(err error)

FatalIf panics if err is not nil.

func First

func First(errs ...error) error

First returns first non-nil error out of errs, or nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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