stdin

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEmpty added in v0.8.0

func IsEmpty() bool

IsEmpty returns whether stdin is empty.

func Read

func Read(opts ...Option) (string, error)

Read reads input from an stdin pipe.

Types

type Option added in v0.15.0

type Option func(*options)

Option is a read option.

func SingleLine added in v0.15.0

func SingleLine(b bool) Option

SingleLine reads a single line.

func StripANSI added in v0.15.0

func StripANSI(b bool) Option

StripANSI optionally strips ansi sequences.

Jump to

Keyboard shortcuts

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