https://github.com/postfinance/single
single ensures that only one instance of your program is running
https://github.com/postfinance/single
Last synced: 6 months ago
JSON representation
single ensures that only one instance of your program is running
- Host: GitHub
- URL: https://github.com/postfinance/single
- Owner: postfinance
- License: mit
- Created: 2020-10-09T08:22:29.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-05-10T10:04:49.000Z (over 3 years ago)
- Last Synced: 2024-06-20T06:26:19.694Z (over 1 year ago)
- Language: Go
- Size: 25.4 KB
- Stars: 54
- Watchers: 11
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://goreportcard.com/report/github.com/postfinance/single)
[](https://coveralls.io/github/postfinance/single?branch=master)
[](https://github.com/postfinance/single/actions)
[](https://godoc.org/github.com/postfinance/single)
# Single
Single ensures that only one instance of your program is running
# Usage
Use a persistent `*Single` object for the duration of your program, or Go's garbage collector will automatically close the lockfile.