# Functions
AddFileToZip add file tp zip.Writer
https://golangcode.com/create-zip-files-in-go/.
GzCompress compress data by gzip.
GzDecompress decompress data by gzip
be careful about the decompression bomb, see https://en.wikipedia.org/wiki/Zip_bomb, default maxBytes is 1GB, it's better to set this value to avoid decompression bomb.
NewGZip create new GZCompressor.
NewPGZip create new PGZCompressor.
Unzip will decompress a zip archive, moving all files and folders within the zip file (parameter 1) to an output directory (parameter 2).
UnzipWithCopyChunkBytes copy chunk by chunk from src to dst.
UnzipWithMaxBytes decompressed bytes will not exceed this limit, default/0 is unlimit.
WithBufSizeByte set compressor buf size.
WithGzDecompressMaxBytes decompressed bytes will not exceed this limit,
default is 1GB, it's better to set this value to avoid decompression bomb.
WithLevel set compressor compress level.
WithPGzipBlockSize set compressor blocks.
WithPGzipNBlocks set compressor blocks.
ZipFiles compresses one or many files into a single zip archive file.
# Interfaces
Compressor interface of compressor.
# Type aliases
GzDecompressOption optional arguments for GzDecompress.
CompressOptFunc options for compressor.
UnzipOption optional arguments for UnZip.