iostream

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package iostream provides convenient wrappers around things like stdout, stderr and enables spok to easily talk to a variety of readers and writers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IOStream

type IOStream struct {
	Stdout io.Writer
	Stderr io.Writer
}

IOStream is an object containing io.Writers for spok to talk to.

func Null

func Null() IOStream

Null returns an IOStream configured to discard all output.

func OS

func OS() IOStream

OS returns an IOStream configured to talk to the OS streams.

func Test

func Test() IOStream

Test returns an IOStream configured to talk to temporary buffers that can then be read from to verify output.

Jump to

Keyboard shortcuts

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