[ bianca ]
[ Källkod: golang-github-qor-inflection ]
Paket: golang-github-qor-inflection-dev (0.0~git20151009.0.3272df6-2)
Länkar för golang-github-qor-inflection-dev
Hämta källkodspaketet golang-github-qor-inflection:
- [golang-github-qor-inflection_0.0~git20151009.0.3272df6-2.debian.tar.xz]
- [golang-github-qor-inflection_0.0~git20151009.0.3272df6-2.dsc]
- [golang-github-qor-inflection_0.0~git20151009.0.3272df6.orig.tar.xz]
Ansvariga:
Externa resurser:
- Hemsida [github.com]
Liknande paket:
Pluralizes and singularizes English nouns
Inflection is a Go package that pluralizes and singularizes English nouns.
inflection.Plural("person") => "people"
inflection.Plural("Person") => "People"
inflection.Plural("PERSON") => "PEOPLE"
inflection.Plural("bus") => "buses"
inflection.Plural("BUS") => "BUSES"
inflection.Plural("Bus") => "Buses"
inflection.Singularize("people") => "person"
inflection.Singularize("People") => "Person"
inflection.Singularize("PEOPLE") => "PERSON"
inflection.Singularize("buses") => "bus"
inflection.Singularize("BUSES") => "BUS"
inflection.Singularize("Buses") => "Bus"
inflection.Plural("FancyPerson") => "FancyPeople"
inflection.Singularize("FancyPeople") => "FancyPerson"
Standard rules are from Rails's ActiveSupport.
This package contains the source.
Hämta golang-github-qor-inflection-dev
| Arkitektur | Paketstorlek | Installerad storlek | Filer |
|---|---|---|---|
| all | 4,6 kbyte | 24,0 kbyte | [filförteckning] |