Initial setup

This commit is contained in:
$(pass /github/name)
2024-06-26 13:08:39 +02:00
parent 164c07e3d1
commit fbb3bdfcb3
16 changed files with 279 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
package utils
import "regexp"
func IsEmailValid(email string) bool {
regex := `^[a-z0-9._%+\-]+@[a-z0-9.\-]+\.[a-z]{2,}$`
re := regexp.MustCompile(regex)
return re.MatchString(email)
}