Versions in this module Expand all Collapse all go1 go1.18.10 Jan 10, 2023 Changes in this version + const BestCompression + const BestSpeed + const DefaultCompression + const HuffmanOnly + const NoCompression + var ErrChecksum = errors.New("gzip: invalid checksum") + var ErrHeader = errors.New("gzip: invalid header") + type Header struct + Comment string + Extra []byte + ModTime time.Time + Name string + OS byte + type Reader struct + func NewReader(r io.Reader) (*Reader, error) + func (z *Reader) Close() error + func (z *Reader) Multistream(ok bool) + func (z *Reader) Read(p []byte) (n int, err error) + func (z *Reader) Reset(r io.Reader) error + type Writer struct + func NewWriter(w io.Writer) *Writer + func NewWriterLevel(w io.Writer, level int) (*Writer, error) + func (z *Writer) Close() error + func (z *Writer) Flush() error + func (z *Writer) Reset(w io.Writer) + func (z *Writer) Write(p []byte) (int, error)