Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
moul committed Oct 27, 2017
1 parent e79fbbb commit 68bddf5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,18 @@ $ number-to-words --lang=roman --unicode 42

$ number-to-words --lang=aegean 42
𐄓𐄈
```

default language is english

```console
$ number-to-words 42
forty-two
```

print every supported language at once

```console
$ number-to-words --lang=all 42
forty-two
quarante-deux
Expand Down Expand Up @@ -139,6 +147,7 @@ COMMANDS:
GLOBAL OPTIONS:
--lang value, -l value Set language (default: "en") [$NTW_LANGUAGE]
--help, -h show help
--unicode, -u Use unicode characters when available [$NTW_UNICODE]
--version, -v print the version
```

Expand Down Expand Up @@ -177,7 +186,9 @@ import "github.com/moul/number-to-words"

fmt.Println(ntw.IntegerToFrench(42))
// Outputs: quarante-deux
```

```go
fmt.Println(ntw.IntegerToEnglish(42))
// Outputs: forty-two

Expand Down

0 comments on commit 68bddf5

Please sign in to comment.