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.