Versions in this module Expand all Collapse all v0 v0.1.1 Mar 1, 2021 v0.1.0 Mar 1, 2021 Changes in this version + func Lock(key string) + func LockFunc(key string, f func()) + func RLock(key string) + func RLockFunc(key string, f func()) + func RUnlock(key string) + func Remove(key string) + func TryLock(key string) bool + func TryLockFunc(key string, f func()) bool + func TryRLock(key string) bool + func TryRLockFunc(key string, f func()) bool + func Unlock(key string) + type Locker struct + func New() *Locker + func (l *Locker) Clear() + func (l *Locker) Lock(key string) + func (l *Locker) LockFunc(key string, f func()) + func (l *Locker) RLock(key string) + func (l *Locker) RLockFunc(key string, f func()) + func (l *Locker) RUnlock(key string) + func (l *Locker) Remove(key string) + func (l *Locker) TryLock(key string) bool + func (l *Locker) TryLockFunc(key string, f func()) bool + func (l *Locker) TryRLock(key string) bool + func (l *Locker) TryRLockFunc(key string, f func()) bool + func (l *Locker) Unlock(key string)