plurals

package
v0.0.0-...-6570881 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: BSD-3-Clause, 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