Versions in this module Expand all Collapse all v1 v1.10.0 Nov 5, 2017 Changes in this version type PluralSpec + func GetPluralSpec(tag string) *PluralSpec v1.9.0 Sep 17, 2017 Changes in this version + func RegisterPluralSpec(ids []string, ps *PluralSpec) + type Operands struct + F int64 + I int64 + N float64 + T int64 + V int64 + W int64 + func (o *Operands) NequalsAny(any ...int64) bool + func (o *Operands) NinRange(from, to int64) bool + func (o *Operands) NmodEqualsAny(mod int64, any ...int64) bool + func (o *Operands) NmodInRange(mod, from, to int64) bool v1.8.1 May 12, 2017 v1.8.0 Apr 1, 2017 v1.7.0 Dec 5, 2016 v1.6.0 Oct 19, 2016 v1.5.0 Oct 3, 2016 v1.4.0 Nov 23, 2015 v1.3.0 Oct 9, 2015 v1.2.0 Aug 18, 2015 v1.1.0 Jul 1, 2015 Changes in this version type Language + func (l *Language) MatchingTags() []string v1.0.0 Apr 30, 2015 Changes in this version + const Few + const Invalid + const Many + const One + const Other + const Two + const Zero + func Add(l *Language) + func NormalizeTag(tag string) string + type Language struct + Tag string + func MustParse(src string) []*Language + func Parse(src string) []*Language + func (l *Language) String() string + type Plural string + func NewPlural(src string) (Plural, error) + type PluralSpec struct + PluralFunc func(*operands) Plural + Plurals map[Plural]struct{} + func (ps *PluralSpec) Plural(number interface{}) (Plural, error)