Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ReadCloser ¶
ReadCloser is a Reader that is also an io.Closer.
func ByteReadCloser ¶
func ByteReadCloser(r io.ReadCloser) ReadCloser
ByteReadCloser returns a ReadCloser either by returning the io.ReadCloser r if it implements the interface, or wrapping it with a ReadByte method.
func NopCloser ¶
func NopCloser(r Reader) ReadCloser
NopCloser returns a ReadCloser with a no-op Close method wrapping the provided Reader r.
Click to show internal directories.
Click to hide internal directories.