Install golang-github-nebulouslabs-demotemutex-dev by entering the following commands in the terminal:
sudo apt update sudo apt install golang-github-nebulouslabs-demotemutex-dev
Description:
Allow an RWMutex writelock to be demoted to a readlock.
This package provides an extension to sync.Mutex that allows a writelock to be demoted to a readlock without releasing control to other writelocks.
Homepage: https://github.com/nebulouslabs/demotemutex
Version: 0.0~git20151003.0.235395f-1
Section: universe/devel