Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ValidateFunc ¶
type Writer ¶
type Writer struct { Buffer []byte Writer io.Writer Validate ValidateFunc // contains filtered or unexported fields }
A Writer accepts Write()s of any size, buffers them, and relays only Writes of len(Buffer) to the underlying writer, calling Validate first if it's non-nil. The last Write might be < len(Buffer). The Writer must be closed, otherwise the last <= len(Buffer) bytes will be lost.
Click to show internal directories.
Click to hide internal directories.