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

https://github.com/taran1sdev/baseconverter

Simple Go application to convert decimal numbers to their base-2/8/16 equivalents.
https://github.com/taran1sdev/baseconverter

go number-converter

Last synced: 10 months ago
JSON representation

Simple Go application to convert decimal numbers to their base-2/8/16 equivalents.

Awesome Lists containing this project

README

          

# baseConverter

My first Go Application - very simple but has utility.

Accepts a decimal number as input and outputs the number in Binary, Octal and Hexidecimal.

Build:

```bash
git clone https://github.com/taran1sdev/baseConverter.git
go build baseConverter.go
```

Usage:
```bash
./baseConverter
```

Example:
```bash
$ ./baseConverter 946
Base Converter!

Decimal value: 946
--------------
Binary: 1110110010
Octal: 0o1662
Hex: 0x3B2
```