opensourcecontributors icon indicating copy to clipboard operation
opensourcecontributors copied to clipboard

Use "net/context"

Open hut8 opened this issue 9 years ago • 1 comments

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).

hut8 avatar Feb 23 '16 22:02 hut8

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.

joshjordan avatar Feb 24 '16 01:02 joshjordan