Things in Go I Never Use
summary
Argues that actual code wins: avoid goto and labels except tiny local loops, prefer slices over arrays and skip premature capacity tuning, never use new — use literals, avoid panic in favor of returned errors (panic only to improve an already panicking message), flip ifs to eliminate else and keep the happy path, prefer http.HandlerFunc with lazy init via sync.Once for template setup, and never rely on unnamed struct-literal order or magic numeric capacities.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 2:10Unused Go features
- 7:28Go keywords I never use
- 10:48Avoiding else and labels
- 12:57Why avoid new and arrays
- 16:15Panics as errors
- 17:46Unnamed struct fields
- 19:57Prefering http.HandlerFunc
- 21:50Simplicity over sugar
- 23:38Invitation to Go devs








