Versions in this module Expand all Collapse all v5 v5.2.1 Nov 14, 2020 Changes in this version + var ErrEmptyReader = errors.New("reader is empty") + func CheckClose(c io.Closer, err *error) + func NewContextReadCloser(ctx context.Context, r io.ReadCloser) io.ReadCloser + func NewContextReader(ctx context.Context, r io.Reader) io.Reader + func NewContextWriteCloser(ctx context.Context, w io.WriteCloser) io.WriteCloser + func NewContextWriter(ctx context.Context, w io.Writer) io.Writer + func NewReadCloser(r io.Reader, c io.Closer) io.ReadCloser + func NewReadCloserOnError(r io.ReadCloser, notify func(error)) io.ReadCloser + func NewReaderOnError(r io.Reader, notify func(error)) io.Reader + func NewWriteCloser(w io.Writer, c io.Closer) io.WriteCloser + func NewWriteCloserOnError(w io.WriteCloser, notify func(error)) io.WriteCloser + func NewWriterOnError(w io.Writer, notify func(error)) io.Writer + func NonEmptyReader(r io.Reader) (io.Reader, error) + func WriteNopCloser(w io.Writer) io.WriteCloser