Documentation
¶
Index ¶
- func NopCloser(w io.Writer) io.WriteCloser
- func NopReadWrapper(r io.Reader) (io.ReadCloser, error)
- func NopWriteWrapper(w io.Writer) io.WriteCloser
- func Unprefix(path string, prefix string) (string, error)
- func ZlibReader(r io.Reader) (io.ReadCloser, error)
- func ZlibWriter(w io.Writer) io.WriteCloser
- type ReadWrapper
- type WriteCounter
- type WriteWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NopCloser ¶
func NopCloser(w io.Writer) io.WriteCloser
NopCloser returns a WriteCloser with a no-op Close method wrapping the provided Writer w.
func NopReadWrapper ¶
func NopReadWrapper(r io.Reader) (io.ReadCloser, error)
func NopWriteWrapper ¶
func NopWriteWrapper(w io.Writer) io.WriteCloser
func ZlibReader ¶
func ZlibReader(r io.Reader) (io.ReadCloser, error)
ZlibReader wraps a reader with a new zlib.Reader.
func ZlibWriter ¶
func ZlibWriter(w io.Writer) io.WriteCloser
ZlibWrier wraps a writer with a new zlib.Writer.
Types ¶
type ReadWrapper ¶
type ReadWrapper func(r io.Reader) (io.ReadCloser, error)
type WriteCounter ¶
type WriteCounter struct {
// contains filtered or unexported fields
}
func NewWriteCounter ¶
func NewWriteCounter(writer io.Writer) *WriteCounter
func (*WriteCounter) Count ¶
func (c *WriteCounter) Count() int
type WriteWrapper ¶
type WriteWrapper func(w io.Writer) io.WriteCloser
Click to show internal directories.
Click to hide internal directories.