Registry / utility / getlantern-context

getlantern-context

JSON →
library0.0.0-20220418194847-3d5e7a086201gogounverified

Package context provides a mechanism for transparently tracking contextual state associated to the current goroutine and even across goroutines.

go get github.com/getlantern/context
INSTALL
IMPORT
SIG · GETLANTERN-CONTEXT
G
getlantern-context
utilitygov0.0.0-20220418194847-3d5e7a086201
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/getlantern/context

Creates a new context, stores a value, and retrieves it.

package main import ( "fmt" "github.com/getlantern/context" ) func main() { ctx := context.New() ctx.Put("key", "value") val, _ := ctx.Get("key") fmt.Println(val) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20220418194847-3d5e7a086201latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
getlantern-context — go get getlantern-context · libregistry