gzip

package
v0.0.0-...-10b41df Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GzipCompress

func GzipCompress(level int, src io.WriterTo, dest io.ReaderFrom) (int64, error)

GzipCompress compresses src using gzip and writes the compressed data to dest.

func GzipDecompress

func GzipDecompress(src io.WriterTo, dest io.ReaderFrom) (int64, error)

GzipDecompress decompresses src using gzip and writes the decompressed data to dest.

Types

type GzipCompression

type GzipCompression struct {
	// contains filtered or unexported fields
}

GzipCompression implements the Encoding interface.

func (*GzipCompression) NewReader

func (g *GzipCompression) NewReader(r io.Reader) (io.Reader, error)

NewReader returns a new gzip reader as an io.ReadCloser.

func (*GzipCompression) NewWriter

func (g *GzipCompression) NewWriter(w io.Writer) (io.Writer, error)

NewWriter returns a new gzip writer as an io.WriteCloser.

Jump to

Keyboard shortcuts

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