compression

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package compression provides utilities for compressing and decompressing data using gzip and hex encoding for protocol transmission.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompressToHex

func CompressToHex(data []byte) (string, error)

CompressToHex compresses data using gzip and returns it as a hex-encoded string. This is useful for transmitting binary data over text-based protocols.

func DecompressHex

func DecompressHex(payload string) ([]byte, error)

DecompressHex decodes a hex-encoded string and decompresses it using gzip. Returns the original uncompressed data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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