Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrefixSuffixWriter ¶
type PrefixSuffixWriter struct {
W io.Writer
// N is the max size of the prefix or suffix. The total number of bytes
// retained is N*2.
N int
// contains filtered or unexported fields
}
PrefixSuffixWriter wraps an io.Writer such that the output is limited to a certain number of bytes. Flush must be called in order to write the suffix to the underlying writer.
func (*PrefixSuffixWriter) Flush ¶
func (p *PrefixSuffixWriter) Flush() error
Flush flushes the suffix to the underlying writer.
type SyncWriter ¶
SyncWriter synchronizes concurrent writes to an underlying writer.
Click to show internal directories.
Click to hide internal directories.