/single

single ensures that only one instance of your program is running

Primary LanguageGoMIT LicenseMIT

Go Report Card Coverage Status Build Status GoDoc

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.