Documentation ¶
Overview ¶
Package io...
Index ¶
- func NopReadCloser(x io.Reader) io.ReadCloser
- func NopWriteCloser(x io.Writer) io.WriteCloser
- func RunOnCloseReader(x io.Reader, run CloseFunc) io.ReadCloser
- func RunOnCloseWriter(x io.Writer, run CloseFunc) io.WriteCloser
- func SovereignReader(x io.Reader) io.ReadCloser
- func SovereignWriter(x io.Writer) io.WriteCloser
- type ChunkReader
- type CloseFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NopReadCloser ¶
func NopReadCloser(x io.Reader) io.ReadCloser
NopReadCloser attaches a nop close method to x.
func NopWriteCloser ¶
func NopWriteCloser(x io.Writer) io.WriteCloser
NopWriteCloser attaches a nop close method to x.
func RunOnCloseReader ¶
func RunOnCloseReader(x io.Reader, run CloseFunc) io.ReadCloser
RunOnCloseReader returns an io.ReadCloser which executes run once, on the first call to Close.
func RunOnCloseWriter ¶
func RunOnCloseWriter(x io.Writer, run CloseFunc) io.WriteCloser
RunOnCloseWrite returns an io.WriteCloser which executes run once, on the first call to Close.
func SovereignReader ¶
func SovereignReader(x io.Reader) io.ReadCloser
SovereignReader returns a synchronized version of the argument reader.
func SovereignWriter ¶
func SovereignWriter(x io.Writer) io.WriteCloser
SovereignWriter returns a synchronized version of the argument writer.
Types ¶
type ChunkReader ¶
func NewChunkReader ¶
func NewChunkReader(r io.Reader) *ChunkReader
func (*ChunkReader) Read ¶
func (r *ChunkReader) Read() (chunk []byte, err error)
Click to show internal directories.
Click to hide internal directories.