Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MultiErrors ¶
Returns an error (MultiError) or nil if the errors added were all nil.
Types ¶
type AutoBufWriter ¶
type AutoBufWriter struct {
// contains filtered or unexported fields
}
Auto flushes after x time if the buffer doesn't get filled. Safe to use concurrently.
func NewAutoBufWriter ¶
func NewAutoBufWriter(wc io.WriteCloser) *AutoBufWriter
type LimitedWriter ¶
type LimitedWriter struct {
// contains filtered or unexported fields
}
func NewLimitedWriter ¶
func NewLimitedWriter(size int) *LimitedWriter
func (*LimitedWriter) Bytes ¶
func (w *LimitedWriter) Bytes() []byte
type MultiError ¶
type MultiError struct {
// contains filtered or unexported fields
}
func (*MultiError) Error ¶
func (me *MultiError) Error() string
func (*MultiError) Result ¶
func (me *MultiError) Result() error
Returns itself, or nil if it has no errors.
Click to show internal directories.
Click to hide internal directories.