Documentation ¶ Index ¶ type Compress func NewCompress(t TypeStr) *Compress func (c *Compress) Compress(data []byte) ([]byte, error) func (c *Compress) Decompress(data []byte) ([]byte, error) func (c *Compress) String() string func (c *Compress) TypeString() string type TypeStr Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Compress ¶ type Compress struct { Type TypeStr } func NewCompress ¶ func NewCompress(t TypeStr) *Compress func (*Compress) Compress ¶ func (c *Compress) Compress(data []byte) ([]byte, error) func (*Compress) Decompress ¶ func (c *Compress) Decompress(data []byte) ([]byte, error) func (*Compress) String ¶ func (c *Compress) String() string func (*Compress) TypeString ¶ func (c *Compress) TypeString() string type TypeStr ¶ type TypeStr string const ( TypeZstd TypeStr = "zstd" TypeGzip TypeStr = "gzip" TypeSnappy TypeStr = "snappy" TypeLz4 TypeStr = "lz4" TypeBrotli TypeStr = "brotli" TypeZlib TypeStr = "zlib" TypeZip TypeStr = "zip" ) Source Files ¶ View all Source files compress.go Directories ¶ Show internal Expand all Path Synopsis brotli gzip lz4 snappy zip zlib zstd Click to show internal directories. Click to hide internal directories.