compress

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gzip

func Gzip(data []byte) (io.Reader, error)

Gzip compresses the data.

func GzipBytes

func GzipBytes(data []byte) ([]byte, error)

GzipBytes compresses the bytes.

func GzipJSON

func GzipJSON(data any) (io.Reader, error)

GzipJSON compresses the JSON data.

func GzipJSONBytes

func GzipJSONBytes(data any) ([]byte, error)

GzipJSONBytes compresses the JSON data.

func UnGzip

func UnGzip(data io.Reader) ([]byte, error)

UnGzip decompresses the data.

func UnGzipBytes

func UnGzipBytes(data []byte) ([]byte, error)

UnGzipBytes decompresses the bytes.

func UnGzipJSONUnmarshal

func UnGzipJSONUnmarshal(data io.Reader, v any) error

UnGzipJSON decompresses the JSON data.

func UnGzipJSONUnmarshalBytes

func UnGzipJSONUnmarshalBytes(data []byte, v any) error

UnGzipJSONUnmarshalBytes decompresses the JSON data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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