Go was designed for building networked services: it compiles to a single binary, starts quickly, handles many connections at once and has a standard library that covers most of what an API needs. It is also a small language, so experienced developers can become productive in it quickly. This course is for people who already build backends in another language and want to write idiomatic Go, not translate their old habits into it.
What you'll learn
- Go's core language: types, structs, slices, maps, interfaces and generics
- Error handling the Go way, including wrapping and checking errors
- Packages, modules and how to lay out a service
- Building HTTP APIs with the standard library router, middleware and JSON encoding
- Working with PostgreSQL using database/sql or pgx, plus migrations
- Concurrency with goroutines, channels, the sync package and context for cancellation and timeouts
- Structured logging with log/slog and configuration from the environment
- Table-driven tests, HTTP handler tests and benchmarks
- Profiling and spotting common performance problems
- Building small container images and deploying a Go service
Who it's for
- Backend developers working in Node.js, Python, PHP or Java who want to add Go
- Teams evaluating Go for APIs, workers or internal tools
- DevOps and platform engineers who write CLIs and services
Prerequisites
- Experience building at least one backend or API in another language
- Comfortable with HTTP, JSON and basic SQL
- Go (current stable release) installed; Docker helps for the database and deployment modules (see Docker and DevOps Basics)
Outcomes
By the end of this course you will be able to:
- Write clear, idiomatic Go that other Go developers will recognise.
- Build a REST API using mostly the standard library, backed by PostgreSQL.
- Use goroutines, channels and context safely for concurrent work.
- Test, profile and ship a Go service as a small container image.
Course outline
| Module | Topic |
|---|---|
| 1 | Go tooling, modules and project layout |
| 2 | Types, structs, slices and maps |
| 3 | Interfaces, generics and composition |
| 4 | Errors and error handling patterns |
| 5 | HTTP servers with net/http, routing and middleware |
| 6 | JSON, validation and API design |
| 7 | Databases: PostgreSQL, pgx and migrations |
| 8 | Concurrency: goroutines, channels and sync |
| 9 | Context, timeouts and graceful shutdown |
| 10 | Testing, benchmarks and profiling |
| 11 | Logging, configuration and observability |
| 12 | Building, containerising and deploying the service |
FAQ
Do you use a web framework?
We start with the standard library, which has a capable router since Go 1.22, so you understand what frameworks add. We then show where popular routers and frameworks are useful.
Is Go a good first programming language?
It can be, but this course assumes backend experience. If you are new to programming, start with a beginner course such as Python for Automation.
When should a team choose Go?
Go suits APIs, background workers, CLIs and infrastructure tools where performance, low memory use and simple deployment matter. We discuss the trade-offs honestly rather than treating it as the answer to everything.
How do I join?
Get in touch and we'll share the current format, schedule and enrolment details.