Context
Package gorilla/context is a golang registry for global request variables.
Install / Use
/learn @gorilla/ContextREADME
gorilla/context
⚠⚠⚠ Note ⚠⚠⚠ gorilla/context, having been born well before
context.Contextexisted, does not play well with the shallow copying of the request thathttp.Request.WithContext(added to net/http Go 1.7 onwards) performs.Using gorilla/context may lead to memory leaks under those conditions, as the pointers to each
http.Requestbecome "islanded" and will not be cleaned up when the response is sent.You should use the
http.Request.Context()feature in Go 1.7.
gorilla/context is a general purpose registry for global request variables.
- It stores a
map[*http.Request]map[interface{}]interface{}as a global singleton, and thus tracks variables by their HTTP request.
License
See the LICENSE file for details.
Related Skills
node-connect
345.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
xurl
345.4kA CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.
frontend-design
104.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
