Basic inter-process synchronization via POSIX filesystem locking
go get github.com/rosenhouse/filelock- See the demo code
- Install the demo binary
go install github.com/rosenhouse/filelock/filelock-demo- Acquire a lock
filelock-demo /tmp/some/lock- Open another terminal and attempt to acquire the same lock
filelock-demo /tmp/some/lock
