Gaaker Go

Golang

This guide is a practical explanation of Golang. Each section contains a series of instructions and a complete sample program. You can check the first section or browse the full list below to start learning.

Basics

At the beginning, you will learn all the basics about Golang. Define variables, call functions, and some basic knowledge, and then learn flow control, arrays, slices, mappings, and structures.

Flow Control

Learn how to control the flow of your code with if, else, for loops, switches and defers.

Arrays

Maps

Functions

Structs

Interfaces

Concurrency

The concurrency of Golang is realized through Goroutines. The Goroutine is equivalent to a lightweight thread, and it can work concurrently. Golang also provides channels for communication between multiple coroutines.