https://github.com/m0t9/gocmp
simple Huffman compressor implementation on Go
https://github.com/m0t9/gocmp
Last synced: 3 months ago
JSON representation
simple Huffman compressor implementation on Go
- Host: GitHub
- URL: https://github.com/m0t9/gocmp
- Owner: m0t9
- Created: 2024-07-21T13:34:01.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-07-28T12:12:59.000Z (10 months ago)
- Last Synced: 2025-01-13T22:39:09.427Z (5 months ago)
- Language: Go
- Size: 6.09 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gocmp
[](https://github.com/m0t9/gocmp/actions/workflows/go.yml)
[](https://github.com/m0t9/gocmp/actions/workflows/.testcoverage.yml)A simple implementation of Huffman compression tool on Go-language.
## Build
`go build -o gocmp cmd/gocmp/main.go`
## Usage
### Compression
```sh
./gocmp src-path compressed-path
(=^ ◡ ^=) successfully compressed to file 'compressed-filename'
( ^..^)ノ compression rate is 1.42
(^・o・^)ノ gocmp running time is 339.456083ms
```### Decompression
```sh
./gocmp -d compressed-path decompressed-path
(=^ ◡ ^=) successfully decompressed to file 'decompressed-filename'
(^・o・^)ノ gocmp running time is 603.004375ms
```