Documentation ¶
Overview ¶
Package input provides a series of functions and structures to read and process i/o from readers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFileOrReader ¶
NewFileOrReader tries to open a file if a non empty filename is passed as a parameter, otherwise a reader passed as the first argument is to be read and copied in a buffer that is returned. Any error along the way is returned.
Types ¶
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner masks an io.Reader and an output.Device so that the output.Device can be paused before the Scanners input can be parsed.
func NewScanner ¶
NewScanner instantiates a new Scanner from an io.Reader and output.Device.
Click to show internal directories.
Click to hide internal directories.