Hey,
I created a package to store global variables used during a request.
Specifically, variables set by 3rd party packages that must be
available somewhere during a request. It is based on a message by Brad
Fitzpatrick to the go-nuts mailing list:
http://groups.google.com/group/golang-nuts/msg/e2d679d303aa5d53
To that idea, it adds the concept of "Namespace", which is a user/
package-defined "bucket" for a given variable. So instead of
map[*http.Request]interface{}, the context stores map[*http.Request]
[Namespace]interface{}. It is explained here:
http://gopkgdoc.appspot.com/pkg/github.com/moraes/gorilla/src/gorilla/context
I'd like to get some feedback about it, and specially would like to
know if you think I'm doing something bad there.
(this is kinda cross-posted from go-nuts; I was still not sure where
it was going when I posted it :)
-- rodrigo