Registry / utility / acconut-lockfile-v1

acconut-lockfile-v1

JSON →
library1.1.0gogounverified

Package lockfile handles pid file based locking for inter-process synchronization.

go get gopkg.in/Acconut/lockfile.v1
INSTALL
IMPORT
SIG · ACCONUT-LOCKFILE-V
A
acconut-lockfile-v1
utilitygov1.1.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.

lockfile
gopkg.in/Acconut/lockfile.v1

Attempts to acquire a pid file lock and releases it after use.

package main import ( "fmt" "gopkg.in/Acconut/lockfile.v1" ) func main() { lock := lockfile.New("/tmp/app.lock") err := lock.TryLock() if err != nil { fmt.Println("failed to acquire lock") return } defer lock.Unlock() fmt.Println("lock acquired") }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
36 hits · last 30 days
node
28
Meta
1
OpenAI (training)
1
Resources
acconut-lockfile-v1 — go get acconut-lockfile-v1 · libregistry