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 this is shamelessly stolen from https://github.com/influxdata/telegraf
Types ¶
type ReadWaitCloser ¶ added in v1.0.0
type ReadWaitCloser struct {
// contains filtered or unexported fields
}
func (*ReadWaitCloser) Close ¶ added in v1.0.0
func (r *ReadWaitCloser) Close() error
Click to show internal directories.
Click to hide internal directories.