News for hackers. Stuff that matters.
Re:Ask HN: Good Go codebases to read? by beliu on Thursday June 01, 2017 @02:36PM (#14463112)
Humble suggestion / shameless plug: try using Sourcegraph to read through some of the excellent codebases mentioned in other posts. This is basically our prime use case (I'm one of the creators): reading through and understanding code structure with jump-to-def / find-refs / symbol search in your browser. I'd suggest starting with the main function and tracing through the static structure of the codebase from there:

https://sourcegraph.com/github.com/golang/go/-/blob/src/net/... https://sourcegraph.com/github.com/mholt/caddy@master/-/blob... https://sourcegraph.com/github.com/btcsuite/btcd@master/-/bl... https://sourcegraph.com/github.com/camlistore/camlistore@mas... https://sourcegraph.com/github.com/boltdb/bolt@master/-/blob... https://sourcegraph.com/github.com/go-kit/kit/-/blob/example...

Re:Ask HN: Good Go codebases to read? by dorianm on Thursday June 01, 2017 @04:52PM (#14464579)
I was trying to understand the go source code the other day, my process was:

`git clone https://github.com/golang/go` then `cd go`, and `tree .`, `git grep ...`, `vim ...`, etc.

Anyway, couldn't find how to get the tests to pass, but found this:

https://golang.org/doc/codewalk/markov/

And a little explanation: https://golang.org/doc/codewalk/codewalk/

Also: https://golang.org/doc/install/source

In terms of codebase, kubernetes and upspin seem pretty good too:

https://github.com/kubernetes/kubernetes https://github.com/upspin/upspin

Re:Ask HN: Good Go codebases to read? by nijaru on Thursday June 01, 2017 @05:51PM (#14465180)
I imagine upspin is one of the best examples because Rob Pike is one of the main contributors
Re:Ask HN: Good Go codebases to read? by dorianm on Saturday June 03, 2017 @12:35PM (#14477124)
Funny thing is that I couldn't get up spin to run :).

But yes having a global namespace is a genius idea.

Re:Ask HN: Good Go codebases to read? by swordbeta on Thursday June 01, 2017 @06:10PM (#14465354)
Thanks for sharing! Just wanted to let you know it doesn't work on firefox android.
Re:Ask HN: Good Go codebases to read? by sargun on Thursday June 01, 2017 @07:55PM (#14466168)
Do you have any plan on supporting C?