Documentation ¶
Overview ¶
Package io provides a mockable wrapper for io.
Index ¶
- type Impl
- func (*Impl) Copy(dst io.Writer, src io.Reader) (written int64, err error)
- func (*Impl) CopyBuffer(dst io.Writer, src io.Reader, buf []byte) (written int64, err error)
- func (*Impl) CopyN(dst io.Writer, src io.Reader, n int64) (written int64, err error)
- func (*Impl) LimitReader(r io.Reader, n int64) io.Reader
- func (*Impl) MultiReader(readers ...io.Reader) io.Reader
- func (*Impl) MultiWriter(writers ...io.Writer) io.Writer
- func (*Impl) NewSectionReader(r io.ReaderAt, off int64, n int64) *io.SectionReader
- func (*Impl) NopCloser(r io.Reader) io.ReadCloser
- func (*Impl) Pipe() (*io.PipeReader, *io.PipeWriter)
- func (*Impl) ReadAll(r io.Reader) ([]byte, error)
- func (*Impl) ReadAtLeast(r io.Reader, buf []byte, min int) (n int, err error)
- func (*Impl) ReadFull(r io.Reader, buf []byte) (n int, err error)
- func (*Impl) TeeReader(r io.Reader, w io.Writer) io.Reader
- func (*Impl) WriteString(w io.Writer, s string) (n int, err error)
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Impl ¶
type Impl struct{}
func (*Impl) CopyBuffer ¶
func (*Impl) NewSectionReader ¶
func (*Impl) Pipe ¶
func (*Impl) Pipe() (*io.PipeReader, *io.PipeWriter)
func (*Impl) ReadAtLeast ¶
type Interface ¶
type Interface interface { Copy(dst io.Writer, src io.Reader) (written int64, err error) CopyBuffer(dst io.Writer, src io.Reader, buf []byte) (written int64, err error) CopyN(dst io.Writer, src io.Reader, n int64) (written int64, err error) LimitReader(r io.Reader, n int64) io.Reader MultiReader(readers ...io.Reader) io.Reader MultiWriter(writers ...io.Writer) io.Writer NewSectionReader(r io.ReaderAt, off int64, n int64) *io.SectionReader NopCloser(r io.Reader) io.ReadCloser Pipe() (*io.PipeReader, *io.PipeWriter) ReadAll(r io.Reader) ([]byte, error) ReadAtLeast(r io.Reader, buf []byte, min int) (n int, err error) ReadFull(r io.Reader, buf []byte) (n int, err error) TeeReader(r io.Reader, w io.Writer) io.Reader WriteString(w io.Writer, s string) (n int, err error) }
Click to show internal directories.
Click to hide internal directories.