修改: Value() -> GetValue()

与结构体名冲特, 修改为GetValue.
This commit is contained in:
huangsimin 2019-01-24 10:00:37 +08:00
parent 3ade58a752
commit d9e2c1fcdb

View File

@ -63,7 +63,7 @@ func (value *Value) SetSync(is bool) {
value.isSync = is value.isSync = is
} }
func (value *Value) Value() interface{} { func (value *Value) GetValue() interface{} {
value.mutex.Lock() value.mutex.Lock()
defer value.mutex.Unlock() defer value.mutex.Unlock()
return value.value return value.value