stdin

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContent

func GetContent() (string, error)

func IsEmpty

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

type Option func(*options)

Option is a read option.

func SingleLine

func SingleLine(b bool) Option

SingleLine reads a single line.

func StripANSI

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