https://github.com/nico-castell/go-binme
Simple program to process text into binary, hexadecimal, and even octal! Ideal for piped input and/or output.
https://github.com/nico-castell/go-binme
binary cli golang hexadecimal octal pipes
Last synced: 6 months ago
JSON representation
Simple program to process text into binary, hexadecimal, and even octal! Ideal for piped input and/or output.
- Host: GitHub
- URL: https://github.com/nico-castell/go-binme
- Owner: nico-castell
- License: unlicense
- Created: 2021-06-17T01:19:36.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-25T15:46:05.000Z (about 5 years ago)
- Last Synced: 2024-06-20T10:15:12.116Z (about 2 years ago)
- Topics: binary, cli, golang, hexadecimal, octal, pipes
- Language: Go
- Homepage:
- Size: 16.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go bin-unbin
[](https://github.com/nico-castell/go-binme/commits)
[](https://github.com/nico-castell/go-binme/releases)
[](LICENSE)
[](https://github.com/nico-castell/go-binme)
[](https://github.com/nico-castell/go-binme/actions/workflows/codeql-analysis.yml)
I've been learning [***Golang***](https://golang.org/) for a while, I made this program to process input into binary, hexadecimal and octal.
## Usage
- To process text input into binary:
```shell
$ go-binme
```
- To process text input into hexadecimal:
```shell
$ go-binme -x
```
- To process text input into octal:
```shell
$ go-binme -o
```
- To process text input into decimal:
```shell
$ go-binme -d
```
- You can pipe the input:
```shell
$ echo "Hello, World" | go-binme
```
The program will print a new line after it's done, but only if the output is a terminal, not a pipe.
## Getting it
To get the program run the following command:
```shell
go get github.com/nico-castell/go-binme
```
Alternatively, you can clone the repository and install it from there:
```shell
git clone https://github.com/nico-castell/go-binme.git && \
cd go-binme && \
go install .
```
Either way, you'll need to [***Golang***](https://golang.org/) installed. To install it, you should follow the [official instructions](https://golang.org/doc/install).
## About
This program and this repository are available under the [Unlicense](LICENSE) license.