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. Use when this capability is needed.

tomevault-io Updated

File contents

tomevault-io/skills-registry/tree/main/andmitr--ai-tools--golang-context commit 98ffa6758a

Frequently asked questions

npx skillmds@latest add tomevault-io/golang-context