Go
Installation
SKILL.md
Quick Reference
| Topic | File |
|---|---|
| Concurrency patterns | concurrency.md |
| Interface and type system | interfaces.md |
| Slices, maps, strings | collections.md |
| Error handling patterns | errors.md |
Goroutine Leaks
- Goroutine blocked on channel with no sender = leak forever—always ensure channel closes or use context
- Unbuffered channel send blocks until receive—deadlock if receiver never comes
for rangeon channel loops forever until channel closed—sender mustclose(ch)- Context cancellation doesn't stop goroutine automatically—must check
ctx.Done()in loop - Leaked goroutines accumulate memory and never garbage collect