iostream

package
v1.37.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Input    = os.Stdin
	Output   = os.Stdout
	Messages = os.Stderr
)

Functions

func IsInputTerminal

func IsInputTerminal() bool

func IsOutputTerminal

func IsOutputTerminal() bool

func PipedInput

func PipedInput() ([]byte, error)

PipedInput reads all data available on stdin when stdin is not a terminal (a pipe or redirect). It returns an empty slice on an interactive terminal. A read failure is returned as an error rather than a panic, so a broken pipe on the agent/scripted input path surfaces as a normal error instead of a crash.

Types

This section is empty.

Jump to

Keyboard shortcuts

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