Discover Packages
github.com/sapcc/go-api-declarations
internal
errorset
package
Version:
v1.17.4
Opens a new window with list of versions in this module.
Published: Aug 27, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
ErrorSet replaces the "error" return value in functions that can return
multiple errors. It provides convenience functions for easily adding errors
to the set.
Add adds the given error to the set if it is non-nil.
Addf is a shorthand for errs.Add(fmt.Errorf(...)).
Append adds all errors from the `other` ErrorSet to this one.
IsEmpty returns true if no errors are in the set.
Join joins the messages of all errors in this set using the provided separator.
If the set is empty, an empty string is returned.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.