opensourcecontributors
opensourcecontributors copied to clipboard
Use "net/context"
Currently we don't use net/context
, but we should.
https://godoc.org/golang.org/x/net/context
Each piece of middleware, including the final handler, has no good context state. This is primarily irritating in the error handler, where we can't figure out what problems are because the value returned from panic()
has no context other than the stack trace (i.e., no local variables, no URL, etc).
This is neat.
On Tue, Feb 23, 2016 at 5:11 PM Liam [email protected] wrote:
Currently we don't use net/context, but we should. https://godoc.org/golang.org/x/net/context Each piece of middleware, including the final handler, has no good context state. This is primarily irritating in the error handler, where we can't figure out what problems are because the value returned from panic() has no context other than the stack trace (i.e., no local variables, no URL, etc).
— Reply to this email directly or view it on GitHub https://github.com/tenex/github-contributions/issues/73.