Documentation
¶
Overview ¶
Package lines splits what is written into whole lines as each one completes, such as the output of a program streamed as it runs, and reads a stream a line at a time
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Next ¶
Reads the next line off the reader as text without its line end, however long the line is. A line of more than limit bytes is read past to its end and comes back empty with long set, so what follows a stream of lines never stops at one and never leaves what writes them waiting on a full pipe. The error is the reader's, io.EOF once the stream ended, and what stood before it with no line end is the line it comes with
Types ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer handing on each whole line written to it without its line end, a line cut across writes held until it completes and bytes that are no text replaced. One writer keeps the rest of one stream, so each stream has its own