package testwriter

import "github.com/uber/tchannel-go/testutils/testwriter"

Index

Variables

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.

Source Files

limited.go

Version
v1.34.6 (latest)
Published
Jan 8, 2025
Platform
linux/amd64
Imports
2 packages
Last checked
2 days ago

Tools for package owners.