multierror

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(e1 error, e2 error) error

func DefaultFormatter

func DefaultFormatter(errors []error) string

Types

type Error

type Error struct {
	// contains filtered or unexported fields
}

func (*Error) Append

func (e *Error) Append(err error) *Error

func (*Error) Err

func (e *Error) Err() error

func (*Error) Error

func (e *Error) Error() string

func (*Error) Errors

func (e *Error) Errors() []error

func (*Error) WithFormatter

func (e *Error) WithFormatter(formatter Formatter) *Error

type Formatter

type Formatter interface {
	FormatMultiError([]error) string
}

type FormatterFunc

type FormatterFunc func([]error) string

func (FormatterFunc) FormatMultiError

func (f FormatterFunc) FormatMultiError(errors []error) string

Jump to

Keyboard shortcuts

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