1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00
kyverno/ext/output/pluralize/pluralize.go
Charles-Edouard Brétéché 619c3baab2
chore: init ext packages (#8758)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-10-27 09:50:36 +00:00

8 lines
143 B
Go

package pluralize
func Pluralize(number int, singular string, plural string) string {
if number == 1 {
return singular
}
return plural
}