Documentation
¶
Overview ¶
Package errors provides useful error handling implementations.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Aggregate ¶
Aggregate errors into one error. If the provided errors contain a nil it will be skipped.
Example ¶
err1 := errors.New("error 1")
err2 := errors.New("error 2")
err3 := fmt.Errorf("error inner: %w", errors.New("error 3"))
err := Aggregate(err1, nil, err2, nil, err3)
fmt.Println(err)
Output: error 1 error 2 error inner: error 3
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.