Documentation ¶
Overview ¶
Package io provides io functions
Package io provides io functions
Index ¶
- Variables
- func Copy(dst io.Writer, src io.Reader) (written int64, err error)
- func NewReadCloserWithContext(ctx context.Context, r io.ReadCloser) (io.ReadCloser, error)
- func NewReaderWithContext(ctx context.Context, r io.Reader) (io.Reader, error)
- func NewWriteCloserWithContext(ctx context.Context, w io.WriteCloser) (io.WriteCloser, error)
- func NewWriterWithContext(ctx context.Context, w io.Writer) (io.Writer, error)
- func ReadAll(r Reader) (b []byte, err error)
- type Closer
- type Copier
- type ReadCloser
- type Reader
- type WriteCloser
- type Writer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Pipe = io.Pipe EOF = io.EOF NopCloser = io.NopCloser Discard = io.Discard ErrUnexpectedEOF = io.ErrUnexpectedEOF ErrClosedPipe = io.ErrClosedPipe ErrNoProgress = io.ErrNoProgress ErrShortWrite = io.ErrShortWrite ErrShortBuffer = io.ErrShortBuffer )
Functions ¶
func NewReadCloserWithContext ¶
func NewReadCloserWithContext(ctx context.Context, r io.ReadCloser) (io.ReadCloser, error)
func NewReaderWithContext ¶
func NewWriteCloserWithContext ¶
func NewWriteCloserWithContext(ctx context.Context, w io.WriteCloser) (io.WriteCloser, error)
func NewWriterWithContext ¶
Types ¶
type ReadCloser ¶ added in v1.1.1
type ReadCloser = io.ReadCloser
type Reader ¶ added in v1.1.1
func NewEOFReader ¶ added in v1.5.0
func NewEOFReader() Reader
type WriteCloser ¶ added in v1.1.1
type WriteCloser = io.WriteCloser
Click to show internal directories.
Click to hide internal directories.