Documentation
¶
Index ¶
- func GUnzippedBytes(input []byte) ([]byte, error)
- func GZippedBytes(input []byte) ([]byte, error)
- func UnzipArchiveToMap(b []byte) (map[string][]byte, error)
- func UnzipArchiveToPath(b []byte, dest string) ([]string, error)
- func ZipArchiveOfFiles(files []string, prefix string) (buf bytes.Buffer, err error)
- func ZipArchiveOfPath(path, prefix string, recursive bool) (buf bytes.Buffer, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GUnzippedBytes ¶
GUnzippedBytes uncompresses a slice of bytes.
func GZippedBytes ¶
GZippedBytes compresses a slice of bytes.
func UnzipArchiveToMap ¶
UnzipArchiveToMap will decompress a zip archive to a map. May be memory intensive for large zip archives.
func UnzipArchiveToPath ¶
UnzipArchiveToPath will decompress a zip archive, writing all files and folders within the zip archive (parameter 1) to an output directory (parameter 2). Based on an example published at https://golangcode.com/unzip-files-in-go/
func ZipArchiveOfFiles ¶
ZipArchiveOfFiles stores a list of files in a zip archive. The specified prefix is stripped from file names in the archive.
func ZipArchiveOfPath ¶
ZipArchiveOfPath reads the contents of a path into a zip archive. The specified prefix is stripped from file names in the archive. Based on an example published at https://golangcode.com/create-zip-files-in-go/
Types ¶
This section is empty.