https://github.com/andrepolischuk/numd-go
Pluralize a word
https://github.com/andrepolischuk/numd-go
decline number numeral pluralize
Last synced: 11 months ago
JSON representation
Pluralize a word
- Host: GitHub
- URL: https://github.com/andrepolischuk/numd-go
- Owner: andrepolischuk
- Created: 2015-02-04T21:43:47.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-03-03T14:17:47.000Z (over 9 years ago)
- Last Synced: 2025-02-23T00:45:59.702Z (over 1 year ago)
- Topics: decline, number, numeral, pluralize
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# numd [![Build Status][travis-image]][travis-url]
> Pluralize a word
[Docs](https://godoc.org/github.com/andrepolischuk/numd-go)
* 1 dollar, 5 dollars
* 1 рубль, 2 рубля, 5 рублей
## Install
```sh
go get github.com/andrepolischuk/numd-go
```
## Usage
```go
package main
import "github.com/andrepolischuk/numd-go"
func main() {
priceInRub := numd.Decline(24, "рубль", "рубля", "рублей") // 24 рубля
priceInUsd := numd.Decline(51, "dollar", "dollars") // 51 dollars
}
```
## License
MIT
[travis-url]: https://travis-ci.org/andrepolischuk/numd-go
[travis-image]: https://travis-ci.org/andrepolischuk/numd-go.svg?branch=master