Context

The official Go Concurrency Patterns: Context blog post is the best place to start.

Source code: context package

Examples: Context