Effective GodocApr 1, 2014
I started to write a blog post about how to get the most out of godoc, with examples in a repo, and then realized I could just write the whole post as godoc on the repo, so that’s what I did. Feel free to send pull requests if there’s anything you see that could be improved.
I actually learned quite a lot writing this article, by exploring all the nooks and crannies of Go’s documentation generation. Hopefully you’ll learn something too.
Either view the documentation on godoc.org:
or view it locally using the godoc tool:
go get code.google.com/p/go.tools/cmd/godoc
go get github.com/natefinch/godocgo
Then open a browser to http://localhost:8080/pkg/github.com/natefinch/godocgo