context package ले cancellation signals, deadlines, र request-scoped values लाई API boundaries र goroutines मार्फत ढोकिन्छ। यो operations को lifetime नियन्त्रण गर्नको लागि मानक तरिका हो — विशेष गरी कामलाई cancel गर्न र timeouts लाई function calls को chain मार्फत propagate गर्नको लागि।
यसले समाधान गर्ने मूल समस्या
A request starts work across many goroutines/functions (DB query, API call, etc.).
If the client disconnects or a timeout hits, you want to CANCEL all that work
so goroutines don't keep running uselessly (wasting resources / leaking).
→ context propagates the "stop now" signal down the entire call chain.
