readwriter

package
v14.47.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package readwriter provides I/O abstractions for command input and output streams.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CountingWriter added in v14.27.0

type CountingWriter struct {
	W io.Writer
	N int64
}

CountingWriter wraps an io.Writer and counts all the writes. Accessing the count N is not thread-safe.

func (*CountingWriter) Write added in v14.27.0

func (cw *CountingWriter) Write(p []byte) (int, error)

type ReadWriter

type ReadWriter struct {
	Out    io.Writer
	In     io.Reader
	ErrOut io.Writer
}

ReadWriter bundles the standard input, output, and error streams for command execution.

Jump to

Keyboard shortcuts

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