mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
619c3baab2
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
8 lines
143 B
Go
8 lines
143 B
Go
package pluralize
|
|
|
|
func Pluralize(number int, singular string, plural string) string {
|
|
if number == 1 {
|
|
return singular
|
|
}
|
|
return plural
|
|
}
|