Um momento

Learn Go

Build clear programs and learn the language designed for simple concurrency.

Start learning 6 lessons · about 1.5 hours · free
About this track

Learn Go from package main and fmt.Println through values, decisions, loops, slices, functions, structs, goroutines, and channels. Every lesson includes a quick check, quiz, and a program you can compile and run against sample input.

Before you start
  • No prior programming experience needed.
  • A modern browser with JavaScript enabled.
  • A network connection is needed to run exercises with Compiler Explorer.
  1. Unit 1 · 0/2 lessons

    Getting started

    Run a Go program and work with basic values. Badge: First package

    1. 0x001Run your first Go programMeet package main, the main function, and fmt.Println. 14 min 0/1 exercises solved 14 min 0/1 exercises solved
    2. 0x102Name values and choose typesStore numbers, text, and true/false values. 14 min 0/1 exercises solved 14 min 0/1 exercises solved
  2. Unit 2 · 0/2 lessons

    Decisions and repetition

    Branch, loop, and process collections of values. Badge: Flow controller

    1. 0x203Make decisions with ifChoose different behavior based on a condition. 14 min 0/1 exercises solved 14 min 0/1 exercises solved
    2. 0x304Repeat work with loops and slicesUse Go’s for loop and a flexible list of values. 14 min 0/1 exercises solved 14 min 0/1 exercises solved
  3. Unit 3 · 0/2 lessons

    Functions and concurrency

    Build reusable functions and coordinate concurrent tasks. Badge: Go orchestrator

    1. 0x405Write reusable functionsPass values to functions and return results. 14 min 0/1 exercises solved 14 min 0/1 exercises solved
    2. 0x506Model data and run concurrent workGroup fields in a struct and coordinate a goroutine with a channel. 14 min 0/1 exercises solved 14 min 0/1 exercises solved
Gostou da aula? 😆👍
Apoie nosso trabalho com uma doação: