This commit is contained in:
lbenedar
2026-03-06 16:05:24 +03:00
parent 8d3c025660
commit fc07515dbd
2 changed files with 2 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ func MaxChars(value string, n int) bool {
return utf8.RuneCountInString(value) <= n
}
func PermittedInt(value int, permittedValues ...int) bool {
func PermittedValue[T comparable](value T, permittedValues ...T) bool {
for i := range permittedValues {
if value == permittedValues[i] {
return true