multi

package
v1.0.0-alpha3 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(errs error, err error) error

Append error to Errors. If the first arg is not an Errors object, one will be created

func New

func New(errs ...error) error

New Errors object with the given errors. Only non-nil errors are added.

Types

type Errors

type Errors []error

Errors is used to represent multiple errors

func (Errors) Error

func (errs Errors) Error() string

Error implements the error interface to return a string representation of Errors

func (Errors) ToError

func (errs Errors) ToError() error

ToError converts Errors to the error interface returns nil if no errors are present, a single error object if only one is present

Jump to

Keyboard shortcuts

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