Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 825 Bytes

README.markdown

File metadata and controls

46 lines (32 loc) · 825 Bytes

Build Status

multierror

-- import "go-multierror"

Usage

type MultiError

type MultiError struct {
}

MultiError implements error interface. An instance of MultiError has zero or more errors.

func NewMultiError

func NewMultiError() *MultiError

NewMultiError: returns a thread safe instance of multierror

func (*MultiError) Error

func (m *MultiError) Error() string

Error implements error interface.

func (*MultiError) HasError

func (m *MultiError) HasError() error

HasError checks if MultiError has any error.

func (*MultiError) Push

func (m *MultiError) Push(errString string)

Push adds an error to MultiError.