Versions in this module Expand all Collapse all v1 v1.3.0 Aug 12, 2022 v1.2.0 Jul 23, 2022 Changes in this version + type Brotli [brotli.BestCompression - brotli.BestSpeed]*sync.Pool + func NewBrotli() *Brotli + func (compressor *Brotli) Compress(level int, target io.Writer, from *bytes.Buffer) error + type Compressor interface + Compress func(level int, to io.Writer, from *bytes.Buffer) error + type Gzip [gzip.BestCompression - gzip.BestSpeed]*sync.Pool + func NewGzip() *Gzip + func (compressor *Gzip) Compress(level int, target io.Writer, from *bytes.Buffer) error + type Zlib [zlib.BestCompression - zlib.BestSpeed]*sync.Pool + func NewZlib() *Zlib + func (compressor *Zlib) Compress(level int, target io.Writer, from *bytes.Buffer) error