ioutils

package
v0.0.0-...-bc5839e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL