errchan

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrChan

type ErrChan struct {
	C chan error
}

func New

func New(n int) *ErrChan

New returns an error channel of max length 'n' errors can be sent to the ErrChan.C channel, and will be returned when ErrChan.Error() is called.

func (*ErrChan) Error

func (e *ErrChan) Error() error

Error closes the ErrChan.C channel and returns an error if there are any non-nil errors, otherwise returns nil.

Jump to

Keyboard shortcuts

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