AnyCompiler

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.

  1. 1Introduction to Go
  2. 2Your First Go Program
  3. 3Variables and Types
  4. 4Functions
  5. 5Control Flow
  6. 6Arrays and Slices
  7. 7Maps
  8. 8Structs
  9. 9Methods
  10. 10Interfaces
  11. 11Pointers
  12. 12Error Handling
  13. 13defer, panic, and recover
  14. 14Closures
  15. 15Goroutines
  16. 16Channels
  17. 17Struct Embedding
  18. 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.