https://github.com/mahdavipanah/hamcode
Encode, decode and correct (single bit) a binary code using Hamming code algorithm in Go language
https://github.com/mahdavipanah/hamcode
blog decode encode go golang hamming-code
Last synced: 5 months ago
JSON representation
Encode, decode and correct (single bit) a binary code using Hamming code algorithm in Go language
- Host: GitHub
- URL: https://github.com/mahdavipanah/hamcode
- Owner: mahdavipanah
- License: mit
- Created: 2016-04-20T21:24:03.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-26T07:39:50.000Z (about 9 years ago)
- Last Synced: 2024-06-20T03:47:25.112Z (11 months ago)
- Topics: blog, decode, encode, go, golang, hamming-code
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 4
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hamcode
Encode, decode and correct (single bit) a binary code using Hamming code.## Install
Make sure you have [Go programming language](http://golang.org) installed. Then run the following command:
```Bash
go get github.com/mahdavipanah/hamcode
```## Usage
```Bash
$ hamcode help
Encode, decode and correct (single bit) a binary code using Hamming code.Usage: hamcode [command] [binary code]
Available Commands:
correct Print the corrected binary code
encode Print the encoded data binary using Hamming code
decode Print the data binary code inside the input Hamming code
help, -h, --help Print the helpAvailable Options:
--rtl Interpret the code from right to leftAuthor: Hamidreza Mahdavipanah
Repository: http://github.com/mahdavipanah/hamcode
```
### Example
```Bash
$ hamcode encode 1011 --rtl
1010101
$ hamcode decode 1010101 --rtl
1011
```