plural

package
v0.0.0-...-2824937 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2020 License: MIT, BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package plural defines the grammatical plural feature.

The definitions in this package are based on the plural rule handling defined in CLDR. See http://unicode.org/reports/tr35/tr35-numbers.html#Language_Plural_Rules for details.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Form

type Form byte

Form defines a plural form. The meaning of plural forms, as well as which forms are supported, vary per language. Each language must at least support the form "other".

const (
	Other Form = iota
	Zero
	One
	Two
	Few
	Many
)

type Interface

type Interface interface {
	// PluralForm reports the plural form of a value, depending on the
	// language declared by the given state.
	PluralForm(s format.State) Form
}

Interface is implemented by values that have a plural feature.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL