Detailed descriptions of core Go concepts
Table of contents
Interface essentials in 5 easy steps
An interface type consists of a set of method signatures. A variable of interface type can hold any value that implements these methods.
Create, initialize and compare structs
A struct is a typed collection of fields, useful for grouping data into records.
Slices and arrays in 6 easy steps
A slice refers to a section of an underlying array. It can grow and shrink within the bounds of this array.
Map essentials in 4 easy steps
A map (or dictionary) is an unordered collection of key-value pairs.
5 basic for loop patterns
The for loop can be used for three-component loops, while loops, infinite loops and for-each range loops. You can exit a loop with break or continue.
5 switch statement patterns
A switch-case-default statement is a shorter and cleaner way to write a sequence of if-else statements.
Packages in 6 easy steps
Every Go program is made up of packages and each package has an import path.
This Concurrent programming tutorial covers the fundamentals of concurrent programming with examples in Go.
Follow on Twitter
One useful golang fact per day
Share this page: