A CLI tool that takes a number, from 0 to 100000, and converts the number into grammatically correct English words.
There is a binary file that you can execute. No dependencies should be required:
$ ./numbers-to-words [number]
Examples:
$ ./numbers-to-words 10
ten
$ ./numbers-to-words 123
one hundred and twenty-three
Make sure you have installed all of the following prerequisites on your development machine:
- The Go Programming Language. I was using version 1.18, but since no fancy stuff is being used, it should work with older versions as well.
To generate an executable binary:
$ go build
To run the tests:
$ go test ./convert