Registry / utility / modern-go-gls

modern-go-gls

JSON →
library0.0.0-20220109145502-612d0167dce5gogounverified

Provides goroutine-local storage for Go, allowing values to be stored and retrieved per goroutine.

go get github.com/modern-go/gls
INSTALL
IMPORT
SIG · MODERN-GO-GLS
M
modern-go-gls
utilitygov0.0.0-20220109145502-612d0167dce5
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.

gls
github.com/modern-go/gls

Sets and gets a value in goroutine-local storage.

package main import ( "fmt" "github.com/modern-go/gls" ) func main() { gls.Set("key", "value") fmt.Println(gls.Get("key")) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20220109145502-612d0167dce5latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
modern-go-gls — go get modern-go-gls · libregistry