Registry / utility / burntsushi-locker

burntsushi-locker

JSON →
library0.0.0-20171006230638-a6e239ea1c69gogounverified

Package locker provides named read-write mutexes for synchronizing access to session-based information in web applications.

go get github.com/BurntSushi/locker
INSTALL
IMPORT
SIG · BURNTSUSHI-LOCKER
B
burntsushi-locker
utilitygov0.0.0-20171006230638-a6e239ea1c69
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.

locker
github.com/BurntSushi/locker

Lock a named mutex

package main import ( "fmt" "github.com/BurntSushi/locker" ) func main() { locker.Lock("session1") defer locker.Unlock("session1") fmt.Println("critical section") }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20171006230638-a6e239ea1c69latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
burntsushi-locker — go get burntsushi-locker · libregistry