Hacker News new | ask | show | jobs
by daniel-thompson 1095 days ago
The author demonstrates attaching services to a context, which afaict goes against the Go authors' usage recommendations in https://pkg.go.dev/context:

> Use context Values only for request-scoped data that transits processes and APIs, not for passing optional parameters to functions.