From d9e2c1fcdb5eb7535d5a43e12b77a3092590cd89 Mon Sep 17 00:00:00 2001 From: huangsimin Date: Thu, 24 Jan 2019 10:00:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9:=20Value()=20->=20GetValue()?= =?UTF-8?q?=20=E4=B8=8E=E7=BB=93=E6=9E=84=E4=BD=93=E5=90=8D=E5=86=B2?= =?UTF-8?q?=E7=89=B9,=20=E4=BF=AE=E6=94=B9=E4=B8=BAGetValue.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- value.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/value.go b/value.go index 471cdc4..34c022d 100644 --- a/value.go +++ b/value.go @@ -63,7 +63,7 @@ func (value *Value) SetSync(is bool) { value.isSync = is } -func (value *Value) Value() interface{} { +func (value *Value) GetValue() interface{} { value.mutex.Lock() defer value.mutex.Unlock() return value.value