Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadCloser ¶
func ReadCloser(in ReaderAtCloser) io.ReadCloser
ReadCloser returns a ReadCloser from ReaderAtCloser.
func WithCloser ¶ added in v0.14.0
func WithCloser(r io.ReadCloser, closer func() error) io.ReadCloser
WithCloser returns a ReadCloser with additional closer function.
Types ¶
type NopWriteCloser ¶
func (*NopWriteCloser) Close ¶
func (w *NopWriteCloser) Close() error
type ReaderAtCloser ¶ added in v0.14.0
type WriteCloser ¶
type WriteCloser struct { io.WriteCloser CloseFunc func() error }
func (*WriteCloser) Close ¶
func (wc *WriteCloser) Close() error
Click to show internal directories.
Click to hide internal directories.