1
This commit is contained in:
@@ -6,9 +6,20 @@ import (
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
"strings"
|
||||
"sync"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestSyncMap(t *testing.T) {
|
||||
var EBaiVendorStoreIDList = new(sync.Map)
|
||||
|
||||
fmt.Println(EBaiVendorStoreIDList.Load("1"))
|
||||
EBaiVendorStoreIDList.Store("2", 1)
|
||||
value, ok := EBaiVendorStoreIDList.Load("2")
|
||||
fmt.Println(value)
|
||||
fmt.Println(ok)
|
||||
}
|
||||
|
||||
//
|
||||
//import (
|
||||
// "fmt"
|
||||
|
||||
Reference in New Issue
Block a user