main v1.0.1
alex 2023-10-08 11:56:14 +02:00
parent 737599fbed
commit 3efd29c91f
1 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,7 @@
package validator
import (
"log"
"regexp"
"strings"
@ -34,3 +35,7 @@ func validateNumericString(fl validator.FieldLevel) bool {
str := fl.Field().String()
return strings.TrimSpace(str) != "" && regexp.MustCompile(`^[0-9]+$`).MatchString(str)
}
func test() {
log.Println("test")
}