emailchecker

command module
v0.0.0-...-2151277 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2022 License: MIT Imports: 4 Imported by: 0

README

Email Checker

Email address validator for golang. Can make lexical validation and test whether domain exists.

It can both checks single or multiple emails.

Usage

Multiple mails:

emails := []string{
		"[email protected]  ",
		"bad-example@ There Is No Domain Like That.com",
		"bad-example",
		"[email protected]",
	}
        //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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL