internal

package
Version: v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2016 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CombineErrors

func CombineErrors(errors ...error) error

CombineErrors combines the given collection of errors together. nil values will be ignored.

The intention for this is to help chain togeter errors from multiple failing operations.

CombineErrors(
	reader.Close(),
	writer.Close(),
)

This may also be used like so,

err := reader.Close()
err = internal.CombineErrors(err, writer.Close())
if someCondition {
	err = internal.CombineErrors(err, transport.Close())
}

func MultiError

func MultiError(errors []error) error

MultiError combines a list of errors into one. The list MUST NOT contain nil.

Returns nil if the error list is empty.

Types

This section is empty.

Source Files

Directories

Path Synopsis
Package frame provides a framed reader and writer.
Package frame provides a framed reader and writer.
builtin/pluginapigen
Package pluginapigen provides a plugin Handle that generates code used by the plugin system itself.
Package pluginapigen provides a plugin Handle that generates code used by the plugin system itself.

Jump to

Keyboard shortcuts

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