Versions in this module Expand all Collapse all v0 v0.1.0 Dec 3, 2015 Changes in this version + func FprintfIfTrue(w io.Writer, format string, ok bool) (int, error) + func TempDir(dir, prefix string) (string, error) + type BytesPipe struct + func NewBytesPipe(buf []byte) *BytesPipe + func (bp *BytesPipe) Read(p []byte) (n int, err error) + func (bp *BytesPipe) Write(p []byte) (n int, err error) v0.0.1 Sep 4, 2015 Changes in this version + func FprintfIfNotEmpty(w io.Writer, format, value string) (int, error) + func HashData(src io.Reader) (string, error) + func MultiReadSeeker(readers ...io.ReadSeeker) io.ReadSeeker + func NewBufReader(r io.Reader) *bufReader + func NewBufReaderWithDrainbufAndBuffer(r io.Reader, drainBuffer []byte, buffer *bytes.Buffer) *bufReader + func NewReadCloserWrapper(r io.Reader, closer func() error) io.ReadCloser + func NewReaderErrWrapper(r io.Reader, closer func()) io.Reader + func NewWriteCloserWrapper(r io.Writer, closer func() error) io.WriteCloser + func NopWriteCloser(w io.Writer) io.WriteCloser + type NopFlusher struct + func (f *NopFlusher) Flush() + type NopWriter struct + func (*NopWriter) Write(buf []byte) (int, error) + type OnEOFReader struct + Fn func() + Rc io.ReadCloser + func (r *OnEOFReader) Close() error + func (r *OnEOFReader) Read(p []byte) (n int, err error) + type WriteCounter struct + Count int64 + Writer io.Writer + func NewWriteCounter(w io.Writer) *WriteCounter + func (wc *WriteCounter) Write(p []byte) (count int, err error) + type WriteFlusher struct + func NewWriteFlusher(w io.Writer) *WriteFlusher + func (wf *WriteFlusher) Flush() + func (wf *WriteFlusher) Flushed() bool + func (wf *WriteFlusher) Write(b []byte) (n int, err error)