Programming Languages
Learn Go
95 short lessons with interactive exercises. You start from zero and move from beginner to advanced.
- 95 lessons
- 3 levels
- Arabic & English
- Start free
What you will learn
- Write Go programs using types, control flow, functions and packages
- Use slices, maps, structs, pointers, interfaces and error handling
- Organize a project with modules and generics, and write tests
- Build safe concurrency with goroutines, channels, Context and HTTP servers
About this course
A complete Go course from scratch: you start with the basics — variables, types, conditions, loops and functions — then move on to slices, maps, structs, pointers, interfaces and error handling, all the way to modules, generics, concurrency with goroutines and channels, Context, HTTP servers and testing. Go is a fast, compiled language made for servers, tools and cloud systems.
Skills
- Go
- Server Programming
- Concurrency
- Cloud Systems
Lessons
Every lesson is short, and the exercises after it lock in what you learned.
Beginner level
28 lessons
- Introduction to Go
- How a Go Program Works
- Your First Program in Go
- The main package and the main function
- Printing with fmt.Println
- Comments in Code
- Variables
- Short Declaration with :=
- Constants
- Basic Types
- Zero Values
- Type Conversion
- Strings
- Working with characters using rune
- Arithmetic Operators
- Assignment Operators
- Increment and Decrement
- Comparison Operators
- Logical operators
- Conditions with if and else
- Multiple conditions with else if
- Choosing with switch
- The for loop
- Using for as a while loop
- Loop Control: break and continue
- Defining and Calling Functions
- Function Parameters
- Return Values
Intermediate level
32 lessons
- Multiple Return Values
- Named Return Values
- Variadic Functions
- Functions as Values
- Anonymous Functions
- Closures
- Arrays
- Slices
- Working with Slice Elements
- Adding elements with append
- Slicing
- Looping with range
- Maps
- Working with map elements
- Structs
- Creating Struct Values
- Struct Embedding
- Methods
- Pointers
- Passing Pointers to Functions
- Value and Pointer Receivers
- Interfaces
- Automatic Interface Implementation
- The Empty Interface & any
- Type Assertion
- Type Switch
- Handling errors with error
- Creating Errors
- Error wrapping with %w
- Deferring execution with defer
- Handling panic and recover
- Packages & Import
Advanced level
35 lessons
- Go modules
- Package Organization
- Exported Identifiers
- Working with Files
- Reading & Writing Files
- Working with JSON
- Struct Tags
- Generics
- Type Parameters
- Type Constraints
- Introduction to Concurrency
- Running Tasks with Goroutines
- Channels
- Channel Communication
- Buffered Channels
- Closing channels
- Channel Iteration
- Waiting on several channels with select
- select with Timeout
- Waiting for goroutines with WaitGroup
- Protecting data with a Mutex
- Read-Write Locks: RWMutex
- Running an Operation Once with sync.Once
- Using Context
- Canceling Operations with Context
- Timeouts with context.WithTimeout
- Working with HTTP
- Sending HTTP Requests
- Reading HTTP Responses
- Creating an HTTP Server
- HTTP Routing
- JSON over HTTP
- Testing Functions
- Table-Driven Tests
- Benchmarking
Start your first lesson today
Get the Lammah app and pick “Learn Go” from the courses. Each lesson takes a few minutes, and you can start free.






