Free · No signup
Go Tutorial
Learn Go from the ground up. Every code example on every lesson is real and runnable — the output shown was captured from an actual execution on this site's own compiler, not typed by hand — and you can try each one yourself with one click.
- 1Introduction to Go
- 2Your First Go Program
- 3Variables and Types
- 4Functions
- 5Control Flow
- 6Arrays and Slices
- 7Maps
- 8Structs
- 9Methods
- 10Interfaces
- 11Pointers
- 12Error Handling
- 13defer, panic, and recover
- 14Closures
- 15Goroutines
- 16Channels
- 17Struct Embedding
- 18The Standard Library
More lessons are added regularly. Want to practice outside the tutorial? Open the Go compiler. Prefer Rust? Read the Rust tutorial. Prefer TypeScript? Read the TypeScript tutorial. Prefer JavaScript? Read the JavaScript tutorial. Prefer Python? Read the Python tutorial. Prefer C? Read the C tutorial. Prefer Hindi? Hindi mein padhein. Prefer Urdu? Roman Urdu mein parhein. ¿Prefieres español? Leer en español. Prefere português? Ler em português.