compress

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: MIT Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GZIPBase64EncodeBytes

func GZIPBase64EncodeBytes(input []byte) (string, error)

GZIPBase64EncodeBytes returns a string representation of the input byte slice after compressing and encoding it using GZIP and base64

func TARCreate

func TARCreate(inputDirectory string, outputFile string) error

TARCreate creates a tar archive of the directory at the given path.

func TARExtract

func TARExtract(archiveFile string, outputDirectory string) error

TARExtract extracts a tar archive at the given path into the given directory.

func ZIPCreate

func ZIPCreate(inputDirectory string, outputFile string) error

ZIPCreate creates a zip archive of the directory at the given path.

func ZIPExtract

func ZIPExtract(archiveFile string, outputDirectory string) error

ZIPExtract unzips the zip archive at the given path into the given directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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