4 ms·
The author demonstrates attaching services to a context, which afaict goes against the Go authors' usage recommendations in https://pkg.go.dev/context https://p
by daniel-thompson 3y ago
The author demonstrates attaching services to a context, which afaict goes against the Go authors' usage recommendations in https://pkg.go.dev/context 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.