(singular string, plural string, count interface{})
| 225 | } |
| 226 | |
| 227 | func PluralCustom(singular string, plural string, count interface{}) string { |
| 228 | countInt, _ := cast.InterfaceToInt64(count) |
| 229 | if countInt == 1 { |
| 230 | return singular |
| 231 | } |
| 232 | return plural |
| 233 | } |
| 234 | |
| 235 | // RemoveDuplicates returns a filtered string slice without repeated entries. |
| 236 | // The ignoreRegex parameter can optionally be used to ignore repeated patterns in each slice entry. |
no test coverage detected