testwriter

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrOutOfSpace = errors.New("out of space")

ErrOutOfSpace is returned by Limited reader when it is out of bytes.

Functions

func Limited

func Limited(n int) io.Writer

Limited returns an io.Writer that will only accept n bytes. All further calls will cause an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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