News for hackers. Stuff that matters.
Re:Ask HN: Which are the best Go repositories to read to lea... by thinkingkong on Sunday January 17, 2021 @12:22PM (#25812599)
The stdlib is the best for clarity. But there are some excellent examples of how to structure projects depending on what you're trying to build. Mat Ryer gave an excellent talk on writing HTTP Services. If you want a good example on how to write distributed systems then Hashicorps' projects are more or less gorgeous.

https://medium.com/@matryer/how-i-write-go-http-services-aft...

https://github.com/hashicorp

Re:Ask HN: Which are the best Go repositories to read to lea... by nemo1618 on Sunday January 17, 2021 @02:00PM (#25813720)
> Hashicorps' projects are more or less gorgeous

Is there a particular piece of code (as in, a single package/file/function) that jumps out to you as "gorgeous?" When I look at a random Hashicorp repo, it strikes me an impenetrable labyrinth.

Re:Ask HN: Which are the best Go repositories to read to lea... by aprdm on Sunday January 17, 2021 @05:36PM (#25815933)
Try to add a new feature or see how some feature works, with consul I did some greps over some features I used and followed the code.. was able to put a merge request upstream changing a behaviour I didn't like (configurable) within 4h (that didn't get accepted and that's OK)
Re:Ask HN: Which are the best Go repositories to read to lea... by alexeldeib on Monday January 18, 2021 @03:09AM (#25819407)
Re:Ask HN: Which are the best Go repositories to read to lea... by matwood on Sunday January 17, 2021 @01:13PM (#25813178)
To add to your point, Nic Jackson from hashicorp has a bunch of how-to videos and presentations that I've found good also.

https://www.youtube.com/channel/UC2V1SxXFUa5YxVJvTsrCgyg

Re:Ask HN: Which are the best Go repositories to read to lea... by bewuethr on Sunday January 17, 2021 @02:30PM (#25814026)
He also wrote a book: https://www.packtpub.com/product/building-microservices-with...

The book might be good, but my copy had a problem with spurious characters in every code block, but that seems to be fixed in later printings.

Re:Ask HN: Which are the best Go repositories to read to lea... by dastx on Sunday January 17, 2021 @03:13PM (#25814468)
Great resource! Thanks.