package
3.5.0
Repository: https://github.com/laisky/go-utils.git
Documentation: pkg.go.dev

# Functions

AddFileToZip add file tp zip.Writer https://golangcode.com/create-zip-files-in-go/.
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.
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.

# Structs

GZCompressor compress by gz with buf.
PGZip parallel gzip compressor.

# Interfaces

Compressor interface of compressor.

# Type aliases

CompressOptFunc options for compressor.
UnzipOption optional arguments for UnZip.