tailbuf

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package tailbuf bounds a stream to its most recent bytes. Harness processes hold one stderr buffer for a whole package's tests; unbounded, a chatty suite multiplies the resident cost by the number of concurrent workers, and only the tail ever reaches an error message.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

type Buffer struct {
	// contains filtered or unexported fields
}

Buffer keeps only the last limit bytes written to it.

func New

func New(limit int) *Buffer

func (*Buffer) String

func (b *Buffer) String() string

func (*Buffer) Write

func (b *Buffer) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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