Versions in this module Expand all Collapse all v1 v1.15.1 Apr 30, 2024 v1.15.0 Apr 15, 2024 Changes in this version + type Algorithm uint8 + const Bzip2 + const Gzip + const LZ4 + const None + const XZ + func Detect(r io.Reader) (Algorithm, io.ReadCloser, error) + func Parse(s string) Algorithm + func (a *Algorithm) UnmarshalJSON(b []byte) error + func (a *Algorithm) UnmarshalText(b []byte) error + func (a Algorithm) DetectHeader(h []byte) bool + func (a Algorithm) Extension() string + func (a Algorithm) IsNone() bool + func (a Algorithm) MarshalJSON() ([]byte, error) + func (a Algorithm) MarshalText() ([]byte, error) + func (a Algorithm) Reader(r io.Reader) (io.ReadCloser, error) + func (a Algorithm) String() string + func (a Algorithm) Writer(w io.WriteCloser) (io.WriteCloser, error)