An archiver written in golang that uses Huffman code for compression.
Find a file
2022-01-31 16:35:47 +05:00
cmd Initial commit. Huffman archiver added 2022-01-31 15:43:52 +05:00
internal Initial commit. Huffman archiver added 2022-01-31 15:43:52 +05:00
.gitignore Initial commit. Huffman archiver added 2022-01-31 15:43:52 +05:00
go.mod Initial commit. Huffman archiver added 2022-01-31 15:43:52 +05:00
go.sum Initial commit. Huffman archiver added 2022-01-31 15:43:52 +05:00
main.go Initial commit. Huffman archiver added 2022-01-31 15:43:52 +05:00
README.md README added 2022-01-31 16:35:47 +05:00

Huffman archiver

An archiver that uses Huffman code for compression

Building from source

Prerequisite Tools

  1. Install all prerequisite tools
  2. Clone this repository
git clone https://ashley.sch9.ru/git/mrfoxygmfr/huffman-archiver
  1. 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.