Good example Go code with standard library usage

1.7k Views Asked by At

One of the rather daunting things for me in picking up a new language is the standard library: is it large? What does it have in it? How often is it used? What conventions does it use?

I've been reading the Go tutorial and Effective Go, but I'd like to look at some idiomatic example code for complete (but not too complex) programs, and see how they make use of Go's standard library.

If you have a sample project sitting around you'd be willing to share, or you know of one that would be good to study, I'd appreciate it!

3

There are 3 best solutions below

4
On BEST ANSWER

Feel free to take a look into the - still growing - packages of my Tideland Common Go Library at http://code.google.com/p/tideland-cgl/source/browse/. So if you find something unclear there you can ask me.

0
On

This is the documentation and source code for the standard Go packages.

0
On

_test.go files in each package show actual code using that package. For example, this and this show how to use archive/tar package.