Skip to content

3vilguy/go-number-to-words

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

$ ./numbers-to-words [number]

Examples:

$ ./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. 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:

$ go build

Testing Your Application

To run the tests:

$ go test ./convert

About

CLI for number to words conversion

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages