Registry / utility / gofrs-flock

gofrs-flock

JSON →
library0.13.0gogounverified

Package flock implements a thread-safe interface for file locking.

go get github.com/gofrs/flock
INSTALL
IMPORT
SIG · GOFRS-FLOCK
G
gofrs-flock
utilitygov0.13.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.

flock
github.com/gofrs/flock

Acquire a file lock using flock.

package main import ( "fmt" "github.com/gofrs/flock" ) func main() { lock := flock.New("/tmp/lockfile") lock.Lock() fmt.Println("locked") lock.Unlock() }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
gofrs-flock — go get gofrs-flock · libregistry