Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CapitalizeTransformer ¶
type CapitalizeTransformer struct{}
type OpPluralCaseType ¶
type OpPluralCaseType int
const ( OpPluralCaseTypeRange OpPluralCaseType = iota OpPluralCaseTypeExact OpPluralCaseOther )
type PluralCase ¶
type PluralCase struct { Type OpPluralCaseType A int B int // Ops is a list of operations that should be applied if the case is true. // This can be a list of LiteralOp and PluralCountOp. Ops []any }
func (PluralCase) Match ¶
func (c PluralCase) Match(count int) bool
type PluralCountOp ¶
type PluralCountOp struct{}
type PluralTransformer ¶
type PluralTransformer struct { Cases []PluralCase Other []any }
type ReplaceTransformer ¶
type ReplaceTransformer struct{}
type ReplacementOp ¶
Click to show internal directories.
Click to hide internal directories.