Go backend
Go types, services, SQL, context cancellation and bounded concurrency.
2 lessons in senior · 9 practice activities
Start learning
Go foundations
Lessons
-
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
-
Shut down a busy Go service safely
Senior
· 16 min
Practice
| Activity | Type | Level | |
| Fan out with a bounded worker pool |
practical lab |
Mid |
Preview |
| Fetch concurrently and return the first error |
practical lab |
Mid |
Preview |
| Propagate cancellation through the call chain |
debugging |
Mid |
Preview |
| Scan rows safely and check for errors |
practical lab |
Mid |
Preview |