Closed khanakia closed 3 years ago
This code is not working and returns false
package main import ( "fmt" "github.com/asaskevich/govalidator" ) func main() { fmt.Println(govalidator.IsExistingEmail("john@doe.ca")) }
Returns False but should return TRUE
Playground: https://play.golang.org/p/Sw2aR6bg_jG
Should return TRUE
I figured it out isEmail uses the MX lookup and fails so i used fmt.Println(govalidator.IsEmail("john@doe.ca")) and it worked.
isEmail
fmt.Println(govalidator.IsEmail("john@doe.ca"))
Bug Report
Summary
This code is not working and returns false
Current behavior
Returns False but should return TRUE
How to reproduce
Playground: https://play.golang.org/p/Sw2aR6bg_jG
Expected behavior
Should return TRUE