Go backend
Go types, services, SQL, context cancellation and bounded concurrency.
12 lessons in all levels · 9 practice activities
Go foundations
Lessons
- Return useful Go errors Foundation · 13 min
- Design small interfaces and safe slices Foundation · 12 min
- Decode JSON strictly and test the contract Mid · 12 min
- Write table-driven tests with useful names Mid · 12 min
- Treat zero values and ownership deliberately Mid · 12 min
- Keep a Go package contract stable Senior · 16 min
Practice
| Activity | Type | Level | |
|---|---|---|---|
| Depend on an interface, not a struct | practical lab | Mid | Preview |
| Filter a slice into a new backing array | fluency | Foundation | Preview |
| Reject unknown JSON fields | practical lab | Mid | Preview |
| Return an error callers can inspect | fluency | Mid | Preview |
| Write a table-driven test | tests | Foundation | Preview |
Services and concurrency
Lessons
- Carry cancellation through Go services Foundation · 14 min
- Fan out with bounded workers Foundation · 12 min
- Read database rows safely Mid · 12 min
- Bound outbound HTTP calls Mid · 12 min
- Retry without multiplying side effects Mid · 12 min
- Shut down a busy Go service safely Senior · 16 min