errors

package module
v0.0.0-...-1969528 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2016 License: MIT Imports: 2 Imported by: 0

README

errors Build Status GoDoc

This Go package extends the standard package errors with useful utilities:

  • type Multi []error
  • recovering from panic

Install

go get github.com/stephanos/errors

Documentation

godoc.org

License

MIT (see LICENSE).

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(text string, args ...interface{}) error

func Recover

func Recover(err *error)

Types

type Multi

type Multi []error

Multi is returned by batch operations when there are errors with particular elements. Errors will be in a one-to-one correspondence with the input elements; successful elements will have a nil entry.

func (Multi) Error

func (m Multi) Error() string

Jump to

Keyboard shortcuts

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