Documentation
¶
Overview ¶
Package text implements source.Source over line-oriented text: files and stdin. Every line becomes one Record, losslessly, blank lines included, so downstream stages see exactly what the input contained.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
Source yields one Record per line of the underlying reader.
func New ¶
New returns a Source reading lines from r. name labels the stream in record IDs (e.g. "stdin", a file path). If r is an io.Closer it is closed by Close.
Click to show internal directories.
Click to hide internal directories.