Registry / utility / gorilla-context

gorilla-context

JSON →
library1.1.2gogounverified

Package context stores values shared during a request lifetime.

go get github.com/gorilla/context
INSTALL
IMPORT
SIG · GORILLA-CONTEXT
G
gorilla-context
utilitygov1.1.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

context
github.com/gorilla/context

Store and retrieve request-scoped values

package main import ( "net/http" "github.com/gorilla/context" ) func main() { r, _ := http.NewRequest("GET", "/", nil) context.Set(r, "key", "value") val := context.Get(r, "key") println(val.(string)) }
Debug
Known issues
breakingPackage is deprecated in favor of Go 1.7+ context package
fix
Use the standard library context package instead
affects: >=1.0.0
Upgrade
Version history
1.1.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
gorilla-context — go get gorilla-context · libregistry