News for hackers. Stuff that matters.
Re:Google’s Go Style Guide by dpifke on Friday November 18, 2022 @04:12PM (#33662282)
I prefer to make the implementation package-private and hide it behind an interface if there's no way to make the implementation's zero value useful. Doing so prevents someone from trying to use it without calling the (mandatory) constructor.

There are no comments on this comment yet.