Documentation
¶
Overview ¶
Package input provides helpers for reading flag values from stdin and files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrStdinAlreadyUsed = errors.New("stdin already used")
ErrStdinAlreadyUsed is returned when multiple flags try to consume stdin.
Functions ¶
func ExpandFlagValues ¶
ExpandFlagValues expands flag values that use - (stdin) or @file syntax. Returns the expanded values and whether stdin was consumed.
func ReadLinesFromReader ¶
ReadLinesFromReader reads non-empty lines from a reader.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.