Categorygithub.com/dchest/validator
modulepackage
0.0.0-20191217151620-8e45250f2371
Repository: https://github.com/dchest/validator.git
Documentation: pkg.go.dev

# README

validator

Build Status

Go package validator validates and normalizes email addresses and domain names.

Installation

$ go get github.com/dchest/validator

Documentation

http://godoc.org/github.com/dchest/validator

# Functions

IsValidDomain returns true if the domain is valid.
IsValidEmail returns true if the given string is a valid email address.
NormalizeDomain returns a normalized domain.
NormalizeEmail returns a normalized email address.
ValidateDomainByResolvingIt queries DNS for the given domain name, and returns nil if the the name resolves, or an error.
ValidateEmailByResolvingDomain validates email address by looking up MX records on its domain.

# Variables

No description provided by the author
No description provided by the author