bkaradzic / go-emailvalidator Goto Github PK
View Code? Open in Web Editor NEWSimple library to test is email address valid and/or disposable.
License: Other
Simple library to test is email address valid and/or disposable.
License: Other
Jøhn Døe <[email protected]>
as an email address. This applies to From/To/Subject parts, but only the textual aspect, not the header itself.日本.jp
(as U-label; how the user sees it) becomes xn--wgv71a.jp
(as A-label; how the system interprets it). So this means that email to email address ichiro.yamamoto@日本.jp
(as the user enters it into your system) will be sent email to [email protected]
. Unless the entire system supports UTF-8 DNS, then everything is done using full UTF-8 strings.山本一呂@日本.jp
. As far as I understand it, this will be changed to either 山本一呂@xn--wgv71a.jp
for transport or kept as is depending on the domain registration.1 and 2 are active now on the Internet.
3 depends on the availability of an IDNA-compliant DNS resolver.
4 is future music, but Google Mail already supports it (http://googleblog.blogspot.be/2014/08/a-first-step-toward-more-global-email.html) and Postfix has it in development for 2.12 (http://www.postfix.org/SMTPUTF8_README.html), so it's sort of already here.
I left aside the issue of IDN ccTLDs, but it follows the same rules as domain names.
Not a huge issue, but you seem to do an O(N) lookup for no good reason. Using a map[string]struct{}{}
would be more efficient, as you don't need to look through the whole array for a match.
Check out: https://github.com/lavab/disposable/blob/master/.generate/generate.go
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.