dimuska139/go-email-normalizer
View on GitHub ↗ ★ 79 Go
Golang library for providing a canonical representation of email address.
3 mentions on Hacker News by 2 people: 0 stories, 3 comments · first 2020-10-02 · latest 2021-04-11
20082026
-
…part of the url are unrelated. They're only usually the same by convention. For example: import ( "fmt" "github.com/dimuska139/go-email-normalizer" ) func main() { fmt.Println(emailnormalizer.NewNormalizer().Normalize("x+1@gmail.com")) }…
comment by TheDong · 2021-04-11 · in Systemd Inhibitor Locks Deep Dive -
…going to complain unless you explicitly import it as 'emailnormalizer'". import ( "fmt" emailnormalizer "github.com/dimuska139/go-email-normalizer" )
comment by LukeShu · 2020-10-02 · in Python typosquatting is about more than typos -
Sure, the go way: import ( "fmt" "github.com/dimuska139/go-email-normalizer" ) func main() { fmt.Println(emailnormalizer.NewNormalizer().Normalize("x+1@gmail.com")) } Wait, how did I know to do "emailnormalizer.NewNormalizer()"? Well,…
comment by TheDong · 2020-10-02 · in Python typosquatting is about more than typos