Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compress ¶
Compress is a function that compresses a string using gzip compression.
Parameters:
- v: A string representing the value to compress.
Returns:
- A byte slice representing the compressed value.
- An error if there was an error compressing the value.
Example usage:
compressed, err := Compress("value") // compressed == []byte{...}, err == nil
func Decompress ¶
Decompress is a function that decompresses a byte slice using gzip decompression.
Parameters:
- v: A byte slice representing the compressed value to decompress.
Returns:
- A string representing the decompressed value.
- An error if there was an error decompressing the value.
Example usage:
decompressed, err := Decompress([]byte{...}) // decompressed == "value", err == nil
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.