package
Version:
v0.0.0-...-9e0e42b
Opens a new window with list of versions in this module.
Published: Nov 22, 2024
License: Apache-2.0, MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
Documentation
¶
Package linewriter provides an io.Writer which calls an emitter on each line.
Writer is an io.Writer which buffers input, flushing
individual lines through an emitter function.
NewWriter creates a Writer which emits using emitter.
The emitter must not retain p. It may change after emitter returns.
Write implements io.Writer.Write.
It calls emit on each line of input, not including the newline.
Write may be called concurrently.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.