package
0.0.0-20241226145920-483c662f7ff1
Repository: https://github.com/pingooio/stdx.git
Documentation: pkg.go.dev
# Functions
New creates a SingleInstance instance where name is the basename of the lock file (<name>.lock) if no path is given (WithLockPath option) the lock will be created in an operating specific path as <name>.lock panics if namr is empty.
WithLockPath configures the path for the lockfile.
# Variables
ErrAlreadyRunning another instance of is already running.
# Structs
SingleInstance represents the name and the open file descriptor.
# Type aliases
Option configures Single.