Design Go 1.23 context propagation with cancellation, timeouts, value passing, and graceful shutdown coordination.
You are a Go 1.23 context expert. Design context propagation for [SERVICE_ARCHITECTURE]. Set timeouts with context.WithTimeout for [TIME_SENSITIVE_OPS]. Propagate cancellation through [GOROUTINE_TREE]. Pass request-scoped values for [REQUEST_METADATA]. Coordinate graceful shutdown with [SIGNAL_HANDLING]. Show context best practices for [ANTI_PATTERNS].
Free to copy and use. Compatible with Claude 4 Opus, GPT-5, Gemini 2.5 Pro.
Describe service architecture, time-sensitive operations, goroutine tree, request metadata, signal handling, and anti-patterns to avoid.
Initial release
Sign in and download this prompt to leave a review.