plurals

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package plurals is the pluralform compiler to get the correct translation id of the plural string

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Expression

type Expression interface {
	Eval(n uint32) int
}

Expression is a plurals expression. Eval evaluates the expression for a given n value. Use plurals.Compile to generate Expression instances.

func Compile

func Compile(s string) (expr Expression, err error)

Compile a string containing a plural form expression to a Expression object.

Jump to

Keyboard shortcuts

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