compress

package
v2.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2026 License: MIT Imports: 7 Imported by: 2

Documentation

Index

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"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL