Introduction to Go
Go is a language you use to tell a computer what to do.
People also call it Golang.
Google made it so code stays simple and runs fast.
Think of Go as a friendly teacher. It likes clear steps and small tools.
What is a program?
A program is a list of steps for the computer.
You write the steps in Go. Then Go turns them into something the computer can run.
Why Go feels easy
Go does not pile on fancy tricks.
You learn a few strong ideas, then reuse them.
The same words show up again and again.
Many helpers at once
A goroutine is a helper that works at the same time as other code.
Go is great when many jobs must run together, like many users talking to a server.
What you will learn
First you meet Hello World, labeled boxes called variables, and types.
Then you learn choices, loops, and functions.
Later you meet structs, interfaces, errors, helpers, and pipes between helpers.
Your first real shape
Every runnable Go program needs package main.
It also needs a func main. That is the front door.
The fmt package prints words on the screen.
Click Try it under a code sample to run it in the online compiler.
Test yourself
Three quick questions made just for this lesson. Earn 10 XP per correct answer.