Error Handling And Logging
Explicit error returns, error wrapping, structured logging (slog, zap/zerolog).
Why we need this / what value this brings
Go's explicit-error-return philosophy forces error handling to be visible at every call site — a deliberate design tradeoff.
When to use this
Any function that can fail — decide early whether to wrap, log, or propagate.
How to use or implement this
log/slog (stdlib, 1.21+) for structured logging, wrap errors with context using fmt.Errorf(%w).
Research questions
- (add as research surfaces open questions)
Empty folder — drop notes, links, and findings here as you research.