collect

package
v0.0.0-...-abfb8b1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2016 License: BSD-3-Clause Imports: 0 Imported by: 56

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