Help us shape the future of Go! Take the 2026 Go Developer Survey

errlist

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorList

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

ErrorList is a simple error aggregator to return multiple errors as one.

func NewErrorList

func NewErrorList() *ErrorList

NewErrorList returns an empty *ErrorList

func (*ErrorList) Add

func (el *ErrorList) Add(err error)

Add appends an error to the error list if the it not nil

func (*ErrorList) Err

func (el *ErrorList) Err() error

Err returns whether or not an error list is an error.

func (*ErrorList) Error

func (el *ErrorList) Error() string

Error satisfies the error interface.

Jump to

Keyboard shortcuts

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