Documentation ¶ Index ¶ func Decode(data []byte, alg Alg) ([]byte, error) func DecodeMarshall[T any](data []byte, alg Alg) (T, error) func Encode(data interface{}, alg Alg, levels ...int) ([]byte, error) func FromBytes[M any](data []byte) (M, error) func ToBytes(data interface{}) ([]byte, error) type Alg Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Decode ¶ func Decode(data []byte, alg Alg) ([]byte, error) func DecodeMarshall ¶ func DecodeMarshall[T any](data []byte, alg Alg) (T, error) func Encode ¶ func Encode(data interface{}, alg Alg, levels ...int) ([]byte, error) func FromBytes ¶ func FromBytes[M any](data []byte) (M, error) func ToBytes ¶ func ToBytes(data interface{}) ([]byte, error) Types ¶ type Alg ¶ type Alg string const ( Gzip Alg = "gzip" Flate Alg = "flate" Zlib Alg = "zlib" ) Source Files ¶ View all Source files compress.goutils.go Click to show internal directories. Click to hide internal directories.