Documentation ¶ Index ¶ func Errors(ctx context.Context) (errs chan error, fail func(error)) func Failer(ctx context.Context, errs chan<- error) func(error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Errors ¶ func Errors(ctx context.Context) (errs chan error, fail func(error)) Errors returns an error channel and a function to push an error into the channel. func Failer ¶ added in v0.1.2 func Failer(ctx context.Context, errs chan<- error) func(error) Failer is a function that returns a function to push an error into a channel. It takes a context and an error channel as arguments, and ensures that the error is pushed into the channel only if the context has not been cancelled. Types ¶ This section is empty. Source Files ¶ View all Source files errors.go Click to show internal directories. Click to hide internal directories.