Hacker GitHub

← All repos

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

Mentions per year 3 mentions · busiest year 2020 (2)
20082026
  1. …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
  2. …going to complain unless you explicitly import it as 'emailnormalizer'". import ( "fmt" emailnormalizer "github.com/dimuska139/go-email-normalizer" )
  3. 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,…