Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNoopWriteCloser ¶
func NewNoopWriteCloser() io.WriteCloser
NewNoopWriteCloser returns the no-op WriteCloser.
func NewReadCloserWrapper ¶
func NewReadCloserWrapper(r io.Reader, closeFunc func() error) io.ReadCloser
NewReadCloserWrapper provides the ability to handle the cleanup during closer.
func NewWriteCloserWrapper ¶
func NewWriteCloserWrapper(w io.Writer, closeFunc func() error) io.WriteCloser
NewWriteCloserWrapper provides the ability to handle the cleanup during closer.
Types ¶
type CloseWriter ¶
type CloseWriter interface {
CloseWrite() error
}
CloseWriter is an interface which represents the implementation closes the writing side of writer.
Click to show internal directories.
Click to hide internal directories.