mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 16:24:25 +08:00
add comments
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
"github.com/mayswind/lab/pkg/utils"
|
||||
)
|
||||
|
||||
// ValidEmail returns whether the given email is valid
|
||||
func ValidEmail(fl validator.FieldLevel) bool {
|
||||
if value, ok := fl.Field().Interface().(string); ok {
|
||||
if utils.IsValidEmail(value) {
|
||||
|
||||
Reference in New Issue
Block a user