Top 2.5% dependent repos on proxy.golang.org
proxy.golang.org : github.com/rubyist/lockfile
Package lockfile provides a simple wrapper around a system's file locking capabilities. It provides wrappers around both flock and fcntl type locks. Fcntl based locks are only available with go 1.3 or later. Both flock and fcntl based locks can be explicitly created. lockfile also provides a generic creator which will use fcntl if it is available, otherwise it will provide a flock based lock. Here is an example using the generic creator to lock a file for writing. Here is an example of creating an flock based lock file. Here is an example of creating a fcntl based lock file. This function is only available if the system supports it and Go is version 1.3 or greater. Both functions return a lock that conforms to the Locker interface.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/rubyist/lockfile
License: MIT
Latest release: almost 11 years ago
First release: almost 11 years ago
Namespace: github.com/rubyist
Dependent repositories: 4
Stars: 8 on GitHub
Forks: 1 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: about 2 months ago