This overview of the Go programming language is designed for developers who are already familiar with another language. It's a quick tour of the language's core features such as interfaces and goroutines.
What you'll learn
Go's syntax is fairly similar to C, Java, and other compiled languages, but it has a few unique traits. In this stage, we'll learn everything you need to get started programming.
Chevron 14 steps
Downloading and Storing Package Code
Multiple Return Values
Error Return Values
The Go Formatting Tool
Learn how to direct which parts of your code run next with loops, conditionals, and switches.
Chevron 6 steps
Learn about the various ways Go stores complex data.
Chevron 9 steps
Looping Over Slices
Suppose we had one integer that represents a number of minutes, and another that represents a number of hours? How do you tell those two apart? How do you avoid accidentally storing the hours integer in the minutes integer, or vice-versa? Go lets you create custom types that will help you avoid these sort of mix-ups.
Chevron 7 steps
Don't keep the user waiting! Run multiple parts of your program at once with goroutines. You can communicate between different goroutines and keep everything synchronized using channels.