Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer implements writer, that will proxy to specified `backend` writer only complete lines, e.g. that ends in newline. This writer is thread-safe.
func New ¶
New returns new Writer, that will proxy data to the `backend` writer, thread-safety is guaranteed via `lock`. Optionally, writer can ensure, that last line of output ends with newline, if `ensureNewline` is true.
Click to show internal directories.
Click to hide internal directories.