Email address validator for golang. Can make lexical validation and test whether domain exists.
It can both checks single or multiple emails.
Multiple mails:
emails := []string{
"good@exmaple.com ",
"bad-example@ There Is No Domain Like That.com",
"bad-example",
"test@domain.com",
}
//Returns validmails,lexicalInvalidMails and domainInvalidMails as string slice
validmails, lexicalInvalidMails, domainInvalidMails := GetValidEmails(emails)
Single Mail:
//It returns corrected string without empty space
//mail string, lexical boolean, domain boolean
mail, lexical, domain := CheckSingleEmail("abidik Gubidik@ whatThe Fuck.com")
You can inspect example.go for more instructions and usage.