Next: Program Structure, Previous: Introduction to Go, Up: The Go Programming Language [Index]
This chapter is a tour of the basic components of Go. There will be enough enough information and examples to get you off the ground and doing useful things as quickly as possible. These examples are aimed at tasks that you might have to do in the real world.
When you’re learning a new language, there’s a natural tendency to write code as you would have written it in a language you already know. Be aware of this bias as you learn Go and try to avoid it. We’ve tried to illustrate and explain how to write good Go, so use the code here as a guide when you’re writing your own.