Software Development
Golang Context
Idiomatic context.Context usage in Golang — propagation through API boundaries, cancellation, timeouts and deadlines, request-scoped values, context.WithoutCancel for background work outliving requests. Apply when designing context propagation across layers, debugging leaked or unexpired contexts, choosing between context.Background/TODO/WithoutCancel, or storing values in context. Not for code that merely accepts ctx as first parameter.
- Publisher / source
- samber/cc-skills-golang (found on skills.sh)
- Upstream record
- samber/cc-skills-golang
- Version
- Version 3
- Published
- Publication review
- Approved for publication
- Content fingerprint
257a3e5a07d686ef617a59bc55e5b320665381e50dbc696d0aacc43aee687da2