How to Install golang-github-nightlyone-lockfile-dev in Ubuntu 18.04



Install golang-github-nightlyone-lockfile-dev by entering the following commands in the terminal:

sudo apt update
sudo apt install golang-github-nightlyone-lockfile-dev

Description:

Golang library to handle locking via pid files

Package lockfile handles pid file based locking. . While a sync.Mutex helps against concurrency issues within a single process, this package is designed to help against concurrency issues between cooperating processes or serializing multiple invocations of the same process. You can also combine sync.Mutex with Lockfile in order to serialize an action between different goroutines in a single program and also multiple invocations of this program.

Homepage: https://github.com/nightlyone/lockfile

Version: 0.0~git20170804.6a197d5-1

Section: universe/devel