output

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2024 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 Writer

type Writer interface {
	Printf(format string, args ...interface{})
	Errorf(format string, args ...interface{})
}

func New

func New(normal, failure io.Writer) Writer

New creates a new Writer with the given output sinks. Typically one would plug normal into os.Stdout and failure into os.Stderr, but other outputs may be provided, for example in use of test cases.

todo: make tracing configurable

Jump to

Keyboard shortcuts

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