Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LineReader ¶
type LineReader struct {
C chan []byte
}
LineReader reads lines from an io.Reader and passes them to a channel.
func New ¶
func New() *LineReader
New constructs a new LineReader. While the zero value is usable, it may cause a race condition; it is better to call New() to initialize the channel before calling ReadLines, to ensure that the channel is not nil when it is first read.
Click to show internal directories.
Click to hide internal directories.