errstream

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module(name string, in <-chan error) <-chan error

Module adds a "module" prefix to each error in the input channel. The errors returned by the output channel are formatted as:

fmt.Errorf("[%s] %w", name, err)

func Prefix

func Prefix(prefix string, in <-chan error) <-chan error

Prefix adds a message prefix to each error in the input channel.

Types

This section is empty.

Jump to

Keyboard shortcuts

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