func (f *MemLock) TryLock() (bool, error) {
	if f.locked {
		return false, ErrLocked
	}

	f.locked = true

	return true, f.err
}
// TryLock - attempt to get the lock.
attempt to get the lock.
// TryLock - attempt to get the lock .
func (f *MemLock) TryLock() (bool, error) {
	if f.locked {
		return false, ErrLocked
	}
	f.locked = true
	return true, f.err
}
func ( f * MemLock ) TryLock ( ) ( bool , error ) { if f . locked { return false , ErrLocked } f . locked = true return true , f . err }
attempt to get the lock.
attempt to get the lock .