zerrors

package
v0.9.12 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnyError

func AnyError(errors ...error) error

Returns the first non-nil error in a slice of errors.

func Exec added in v0.9.0

func Exec(fns ...func() error) error

Execute each function until an error is encountered. Returns nil if no error is returned.

func Merge added in v0.9.0

func Merge(errs ...error) error

Returns a merged version of each error encountered in a slice of errors. Each error is a newline delimited message. Returns nil if no error is returned.

func MergeExec added in v0.9.0

func MergeExec(fns ...func() error) error

Execute each function in a slice of functions. Returns a merged version of each error encountered. Each error is a newline delimited message. Returns nil if no error is encountered.

Types

This section is empty.

Jump to

Keyboard shortcuts

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