An archiver written in golang that uses Huffman code for compression.
cmd | ||
internal | ||
.gitignore | ||
go.mod | ||
go.sum | ||
main.go | ||
README.md |
Huffman archiver
An archiver that uses Huffman code for compression
Building from source
Prerequisite Tools
- Install all prerequisite tools
- Clone this repository
git clone https://ashley.sch9.ru/git/mrfoxygmfr/huffman-archiver
- Build executable binary
go build -o huffman main.go
Usage
Archiving
To archive a file, use the command
./huffman encode <archive name> <file name>
where <file name>
is the name of the file to be compressed, <archive name>
is the name of the archive to be created.
Unpacking
To unpack a file, use the command
./huffman decode <archive name> <file name>
where <archive name>
is the name of the archive to unpack, <file name>
is the name of the file to save.