Versions in this module Expand all Collapse all v0 v0.0.4 Jul 25, 2021 Changes in this version + type EasyLock interface + GetLockCnt func() *LockCnt + Lock func(optionFuncList ...OptionFunc) error + RLock func(optionFuncList ...OptionFunc) error + RUnlock func(optionFuncList ...OptionFunc) error + Unlock func(optionFuncList ...OptionFunc) error + func NewLock() EasyLock + func NewSegment(segmentCnt int) (EasyLock, error) + type LockCnt struct + Read int64 + Write int64 + type OptionFunc func(o *option) + func WithFlag(flag string) OptionFunc