collect

package
v0.0.0-...-b66513b Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(fn func() error, err *error)

Error provides a mechanism for collecting errors from deferred functions. The mechanism executes all deferred functions irrespective of their return value, returning the first error it encounters or nil if no error is encountered.

func Errors

func Errors(fn func() error, errs *[]error)

Errors provides a mechanism for collecting errors from deferred functions. The mechanism executes all deferred functions irrespective of their return value, collecting all the errors it encounters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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