Versions in this module Expand all Collapse all v0 v0.0.1 Jul 25, 2023 Changes in this version + const BestCompression + const BestSpeed + const DefaultCompression + func HTTPCompressor(w http.ResponseWriter, r *http.Request) io.WriteCloser + type Reader struct + func NewReader(src io.Reader) *Reader + func (r *Reader) Close() error + func (r *Reader) Read(p []byte) (n int, err error) + func (r *Reader) Reset(src io.Reader) error + type Writer struct + func NewWriter(dst io.Writer) *Writer + func NewWriterLevel(dst io.Writer, level int) *Writer + func NewWriterOptions(dst io.Writer, options WriterOptions) *Writer + func (w *Writer) Close() error + func (w *Writer) Flush() error + func (w *Writer) Reset(dst io.Writer) + func (w *Writer) Write(p []byte) (n int, err error) + type WriterOptions struct + LGWin int + Quality int