An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# Go bin-unbin
[![Commits since last release](https://img.shields.io/github/commits-since/nico-castell/go-binme/latest?label=Commits%20since%20last%20release&color=informational&logo=Git&logoColor=white&style=flat-square)](https://github.com/nico-castell/go-binme/commits)
[![Release](https://img.shields.io/github/v/release/nico-castell/go-binme?label=Release&color=informational&logo=GitHub&logoColor=white&style=flat-square)](https://github.com/nico-castell/go-binme/releases)
[![License](https://img.shields.io/github/license/nico-castell/go-binme?label=License&color=informational&logo=Open%20Source%20Initiative&logoColor=white&style=flat-square)](LICENSE)
[![Lines of code](https://img.shields.io/tokei/lines/github/nico-castell/go-binme?label=Lines%20of%20code&color=informational&logo=Go&logoColor=white&style=flat-square)](https://github.com/nico-castell/go-binme)
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/nico-castell/go-binme/CodeQL?label=CodeQL&logo=GitHub%20Actions&logoColor=white&style=flat-square)](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.