https://github.com/moznion/go-setlock
Go port of setlock (an utility of daemontools)
https://github.com/moznion/go-setlock
Last synced: about 1 year ago
JSON representation
Go port of setlock (an utility of daemontools)
- Host: GitHub
- URL: https://github.com/moznion/go-setlock
- Owner: moznion
- License: mit
- Created: 2015-08-08T13:16:25.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-12-10T06:34:42.000Z (over 10 years ago)
- Last Synced: 2024-10-17T23:55:41.704Z (over 1 year ago)
- Language: Go
- Homepage: http://moznion.hatenadiary.com/entry/2015/08/10/093500
- Size: 28.3 KB
- Stars: 64
- Watchers: 6
- Forks: 8
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
go-setlock
==
[](https://travis-ci.org/moznion/go-setlock)
[](https://app.wercker.com/project/bykey/96120abee397cccab2b78f61a91f8051)
[](http://godoc.org/github.com/moznion/go-setlock)
[](https://github.com/moznion/go-setlock/releases)
go-setlock is a go port of [setlock](http://cr.yp.to/daemontools/setlock.html) (an utility of daemontools),
and accompanying library.
Command Usage
--
```
setlock [ -nNxXvV ] file program [ arg ... ]
```
Command Features
--
- Functions of original setlock (See: [http://cr.yp.to/daemontools/setlock.html](http://cr.yp.to/daemontools/setlock.html))
- Support multiple environments
- Linux
- OS X
- Windows
Command Installation
--
- Download built archive from [GitHub Releases](https://github.com/moznion/go-setlock/releases) and extract it
- Or install by `go get` command: `go get github.com/moznion/go-setlock/cmd/setlock`
Library Usage
--
go-setlock provides file based exclusive lock functions by `setlock` package.
Please refer to the godoc: [](http://godoc.org/github.com/moznion/go-setlock)
Author
--
moznion ()
Contributor
--
* lestrrat
* mattn
License
--
[](https://github.com/moznion/go-setlock/blob/master/LICENSE)