compression

package
v0.0.0-...-fd57926 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompressBZIP2

func CompressBZIP2(src, dst string) error

CompressBZIP2 compresses a file using BZIP2 format

func CompressGZIP

func CompressGZIP(src, dst string) error

CompressGZIP compresses a file using GZIP format

func CompressTAR

func CompressTAR(src, dst string) error

CompressTAR creates a TAR archive from the given source directory or file

func CompressXZ

func CompressXZ(src, dst string) error

CompressXZ compresses a file using XZ format

func CompressZIP

func CompressZIP(src, dst string) error

CompressZIP creates a ZIP archive from a given source directory or file

func DetectArchiveFormat

func DetectArchiveFormat(filename string) (string, error)

DetectArchiveFormat determines the archive format using magic numbers and file extension

func EstimateCompressionSize

func EstimateCompressionSize(src string, format string) (uint64, error)

EstimateCompressionSize provides an approximate compressed size for a given source.

func ExtractBZIP2

func ExtractBZIP2(src, dst string) error

ExtractBZIP2 decompresses a BZIP2 file

func ExtractGZIP

func ExtractGZIP(src, dst string) error

ExtractGZIP decompresses a GZIP file

func ExtractTAR

func ExtractTAR(src, dst string) error

ExtractTAR extracts a TAR archive to the given destination

func ExtractXZ

func ExtractXZ(src, dst string) error

ExtractXZ decompresses an XZ file

func ExtractZIP

func ExtractZIP(src, dst string) error

ExtractZIP extracts a ZIP archive to the given destination

Types

This section is empty.

Jump to

Keyboard shortcuts

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