Added completed user. Some fixes and more more more...

This commit is contained in:
KamilM1205 2026-01-02 22:56:25 +04:00
parent b96dd39795
commit ea8ab7c0ed
33 changed files with 576 additions and 212 deletions

View file

@ -0,0 +1,21 @@
package utils
import (
"strings"
"github.com/go-playground/validator/v10"
)
func InlineListValidator(fl validator.FieldLevel) bool {
str, ok := fl.Field().Interface().(string)
if ok {
for _, char := range str {
if strings.ContainsRune(";", char) {
return false
}
}
}
return true
}