4 ms·
Humble suggestion / shameless plug: try using Sourcegraph to read through some of the excellent codebases mentioned in other posts. This is basically our prime
by beliu 9y ago
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/http/request.go https://sourcegraph.com/github.com/golang/go/-/blob/src/net/...
https://sourcegraph.com/github.com/mholt/caddy@master/-/blob/caddy/main.go https://sourcegraph.com/github.com/mholt/caddy@master/-/blob...
https://sourcegraph.com/github.com/btcsuite/btcd@master/-/blob/cmd/btcctl/btcctl.go https://sourcegraph.com/github.com/btcsuite/btcd@master/-/bl...
https://sourcegraph.com/github.com/camlistore/camlistore@master/-/blob/cmd/camtool/camtool.go https://sourcegraph.com/github.com/camlistore/camlistore@mas...
https://sourcegraph.com/github.com/boltdb/bolt@master/-/blob/cmd/bolt/main.go https://sourcegraph.com/github.com/boltdb/bolt@master/-/blob...
https://sourcegraph.com/github.com/go-kit/kit/-/blob/examples/addsvc/service.go https://sourcegraph.com/github.com/go-kit/kit/-/blob/example...
- dorianm 9y agoI was trying to understand the go source code the other day, my process was: `git clone https://github.com/golang/go` 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/ https://golang.org/doc/codewalk/markov/ And a little explanation: https://golang.org/doc/codewalk/codewalk/ https://golang.org/doc/codewalk/codewalk/ Also: https://golang.org/doc/install/source 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/kubernetes/kubernetes https://github.com/upspin/upspin https://github.com/upspin/upspin
- swordbeta 9y agoThanks for sharing! Just wanted to let you know it doesn't work on firefox android.
- sargun 9y agoDo you have any plan on supporting C?