3 ms·
Gorilla does include a "context" library: http://www.gorillatoolkit.org/pkg/context http://www.gorillatoolkit.org/pkg/context
by kylequest 11y ago
Gorilla does include a "context" library: http://www.gorillatoolkit.org/pkg/context http://www.gorillatoolkit.org/pkg/context
- de_dave 11y agoMoving forward, of course, it's preferable to use the official context package: http://godoc.org/golang.org/x/net/context http://godoc.org/golang.org/x/net/context
- kylequest 11y agoIt complements Gorilla context. It's not a replacement because it doesn't solve the context problem for middleware (no way to pass net/context from middleware to your handler code).