Documentation ¶
Overview ¶
Package gzip provides GZip related functionality
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompressWithGzip ¶
func CompressWithGzip(data io.Reader) (io.ReadCloser, error)
CompressWithGzip takes an io.Reader as input and pipes it through a gzip.Writer returning an io.Reader containing the gzipped data. An error is returned if passing data to the gzip.Writer fails
Types ¶
type ReadWaitCloser ¶
type ReadWaitCloser struct {
// contains filtered or unexported fields
}
ReadWaitCloser is ReadCloser that waits for finishing underlying reader
func (*ReadWaitCloser) Close ¶
func (r *ReadWaitCloser) Close() error
Close closes underlying reader and waits for finishing operations
Click to show internal directories.
Click to hide internal directories.