Documentation ¶ Index ¶ func Lock() (string, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Lock ¶ func Lock() (string, error) lock will look for the .lock file named after the main program and check among the running PIDs whether it's still running. It returns the new locking file's name and any errors. Types ¶ This section is empty. Source Files ¶ View all Source files lockfile.go Click to show internal directories. Click to hide internal directories.