News for hackers. Stuff that matters.
Re:Ask HN: Which are the best Go repositories to read to lea... by sagichmal on Sunday January 17, 2021 @01:21PM (#25813283)
The stdlib is kind of a mess. One kitchen, many cooks, and everyone was learning how to put a five-course meal together as they went. There are some great bits -- package io and ioutil, for example -- but a lot of it is full of what we now understand are bad ideas, and the compatibility promise prevents anyone from doing anything about it.

There is much better code to read. I second the recommendation of HashiCorp's stuff. Stay away from Docker and especially Kubernetes.

Re:Ask HN: Which are the best Go repositories to read to lea... by earthboundkid on Sunday January 17, 2021 @05:59PM (#25816142)
FYI, ioutil is deprecated in Go 1.16. :-) They copied everything out of it and into io and os. It’s much cleaner actually once you get used to it.
Re:Ask HN: Which are the best Go repositories to read to lea... by maerF0x0 on Sunday January 17, 2021 @08:22PM (#25817182)
Another reason it is a bit of a mess is because of the no breaking changes promise. They have to keep ugly or deprecated interfaces unchanged, even into Go 2, iirc.
Re:Ask HN: Which are the best Go repositories to read to lea... by geoah on Sunday January 17, 2021 @02:52PM (#25814265)
Couldn't agree more. Cheney's response to why that is was "do as we say, not as we do".
Re:Ask HN: Which are the best Go repositories to read to lea... by wbl on Sunday January 17, 2021 @04:03PM (#25814933)
Do you have source / more details? There certainly are a few warts but overall it gets the job done.