Write implements io.Writer, processing the data and calling the callback for each complete line.
(p []byte)
| 100 | |
| 101 | // Write implements io.Writer, processing the data and calling the callback for each complete line. |
| 102 | func (lw *LineWriter) Write(p []byte) (n int, err error) { |
| 103 | streamToLines_processBuf(&lw.lineBuf, p, lw.lineFn) |
| 104 | return len(p), nil |
| 105 | } |
| 106 | |
| 107 | // Flush outputs any remaining buffered data as a final line. |
| 108 | // Should be called when the input stream is complete (e.g., at EOF). |
nothing calls this directly
no test coverage detected