News for hackers. Stuff that matters.
Re:Show HN: email - Send emails easily in Go by dkuntz2 on Tuesday January 07, 2014 @02:28PM (#7019282)
In Go isn't `email.NewEmail()` more idiomatic?

To be fair, you could write:

e = &email.Email{ [fields and values] }

The only thing NewEmail does is give you a pointer to an Email.

Re:Show HN: email - Send emails easily in Go by ihsw on Tuesday January 07, 2014 @02:31PM (#7019304)
Re:Show HN: email - Send emails easily in Go by noselasd on Tuesday January 07, 2014 @04:26PM (#7020066)
There's a lot of NewXXX too. The convention is if a package exports only one single type, call it New(...), otherwise call it NewXXX(...)