What's the state of the new context package in caddy?

Hello there,

I’ve been away for some time and I am trying to catch up. As a warm up micro-project I’d like to hack a plugin that creates a Content-Security-Policy nonce that can be used in templates. A prominent use case would be the inline CSS of the browse default template. Such a nonce is request scoped and thus a perfect example for the new context package in Go 1.7.

So, what’s the state of context in caddy? Is it discouraged (as of now)?

I could transparently (that’s the beauty of context) use the context package in a feature branch until Go 1.7 is stable.


I expect the first release of Caddy that follows the Go 1.7 release will be built on Go 1.7. After that I don’t see why you wouldn’t be able to use the Context type in Caddy.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.