go-setlock is a go port of setlock (an utility of daemontools), and accompanying library.
setlock [ -nNxXvV ] file program [ arg ... ]
- Functions of original setlock (See: http://cr.yp.to/daemontools/setlock.html)
- Support multiple environments
- Linux
- OS X
- Windows
- Download built archive from GitHub Releases and extract it
- Or install by
go get
command:go get github.com/moznion/go-setlock/cmd/setlock
go-setlock provides file based exclusive lock functions by setlock
package.
Please refer to the godoc:
moznion (moznion@gmail.com)
lestrrat