https://github.com/3vilguy/go-number-to-words
CLI for number to words conversion
https://github.com/3vilguy/go-number-to-words
Last synced: about 2 months ago
JSON representation
CLI for number to words conversion
- Host: GitHub
- URL: https://github.com/3vilguy/go-number-to-words
- Owner: 3vilguy
- License: mit
- Created: 2022-05-21T16:22:32.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-21T16:49:22.000Z (about 4 years ago)
- Last Synced: 2025-03-12T07:17:34.496Z (about 1 year ago)
- Language: Go
- Size: 2.05 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Number to words (in Golang)
A CLI tool that takes a number, from 0 to 100000, and converts the number into grammatically correct English words.
## Running Your Application
There is a binary file that you can execute. No dependencies should be required:
```bash
$ ./numbers-to-words [number]
```
Examples:
```bash
$ ./numbers-to-words 10
ten
$ ./numbers-to-words 123
one hundred and twenty-three
```
## Prerequisites for building
Make sure you have installed all of the following prerequisites on your development machine:
* [The Go Programming Language](https://go.dev/). I was using version 1.18, but since no fancy stuff is being used, it should work with older versions as well.
## Building
To generate an executable binary:
```bash
$ go build
```
## Testing Your Application
To run the tests:
```bash
$ go test ./convert
```