Golang Context Package Tutorial

The context package in Go is used to carry around request-scoped values, cancellation signals, and deadlines across API boundaries. It can be used to store metadata, cancellation signals, timeouts, and other request-scoped values. The context package provides a way to cancel long-running operations, and to store metadata across API boundaries. It is often used with the http package to manage request-scoped values and cancellation signals for HTTP requests.
Golang Context Package Tutorial