multierror

package
v11.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiError

type MultiError struct {
	Errors []error
	// contains filtered or unexported fields
}

MultiError type handles error accumulation from goroutines.

func (*MultiError) Add

func (err *MultiError) Add(e error)

Add adds an error to the Multierror structure.

func (*MultiError) Error

func (err *MultiError) Error() string

Error turns the MultiError structure into a string.

func (*MultiError) Return

func (err *MultiError) Return() error

Return is used as a wrapper on return on whether to return the MultiError Structure if errors exist or nil instead of delivering an empty structure.

Jump to

Keyboard shortcuts

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