Documentation ¶
Index ¶
- func CompressS2Bytes(rawBytes []byte) (compressedBytes []byte, err error)
- func CompressS2Str(rawStr string) (out []byte, err error)
- func CreateTgzArchive(sourceDir, outputFile string) error
- func DecompressS2Bytes(compressedBytes []byte) (rawBytes []byte, err error)
- func DecompressS2Str(compressed []byte) (string, error)
- func ExtractTgzArchive(archivePath, destDir string) error
- func TryCompressS2Bytes(rawBytes []byte) (compressedBytes []byte)
- func TryCompressS2Str(rawStr string) (compressedBytes []byte)
- func TryDecompressS2Bytes(compressedBytes []byte) (rawBytes []byte)
- func TryDecompressS2Str(in []byte) (out string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompressS2Bytes ¶
func CompressS2Str ¶
func CreateTgzArchive ¶
func DecompressS2Bytes ¶
func DecompressS2Str ¶
func ExtractTgzArchive ¶
func TryCompressS2Bytes ¶
func TryCompressS2Str ¶
TryCompressS2Str try to compress the string with S2, but if it fails, return []byte(in)
func TryDecompressS2Bytes ¶
func TryDecompressS2Str ¶
TryDecompressS2Str try to decompress the []byte with S2, but if it fails, return string(in)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.