Registry / utility / teivah-onecontext

teivah-onecontext

JSON →
library1.3.0gogounverified

Provides a mechanism to merge multiple Go contexts into a single context.

go get github.com/teivah/onecontext
INSTALL
IMPORT
SIG · TEIVAH-ONECONTEXT
T
teivah-onecontext
utilitygov1.3.0
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.

onecontext
github.com/teivah/onecontext

Merge two contexts and access values from both.

package main import ( "context" "fmt" "github.com/teivah/onecontext" ) func main() { ctx1 := context.WithValue(context.Background(), "key1", "value1") ctx2 := context.WithValue(context.Background(), "key2", "value2") merged, _ := onecontext.Merge(ctx1, ctx2) fmt.Println(merged.Value("key1"), merged.Value("key2")) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.3.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
39 hits · last 30 days
node
38
Bingbot
1
Resources
teivah-onecontext — go get teivah-onecontext · libregistry