Good example Go code with standard library usage

One of the rather difficult things for me in choosing a new language is the standard library: is it large? That he has? How often is it used? What conventions are used?

I read the Go and Effective Go tutorial, but I would like to look at some idiomatic sample code for complete (but not too complicated) programs and see how they use the standard Go library.

If you have a model project sitting around, are you ready to share or know that it would be good to study, I would appreciate it!

+4
source share
3 answers

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

+2
source

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

+3
source

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

0
source

Source: https://habr.com/ru/post/1339951/


All Articles