4 ms·
Show HN: Email Verifier Written in Go
Started working on a small Email verifier project in Go
[Done] Core service to verify email.
[Done] Core service live on https://pkg.go.dev https://pkg.go.dev
Next, I will make an API to leverage the core service.
- zufallsheld 2y agoAre you sure this is the best regex for validation? There is this regex: https://emailregex.com/ https://emailregex.com/ Seeing the amount of code let's me think of left-pad. Minimal code that should just be part of your own project instead of using a third party dependency. Also obligatory: don't validate emails, just send the user an email and make them confirm by clicking a link in the mail.
- hsnice16 2y agoNo, this is not the best regex. This is just to set up the initial phase of the project, in the future it will be improved.
- dolanor 2y agoI don't want to be the old fart killjoy, but why not use net/mail.Parse()? Using regexp for email parsing is really error prone and gives email validators that don't accept characters like + that are often used for aliases, etc
- hsnice16 2y agoThis is just the basic initial setup. You will see improvements!