This commit is contained in:
邹宗楠
2025-01-15 14:23:28 +08:00
parent 744e88c694
commit eaaf58cb23
5 changed files with 44 additions and 55 deletions

View File

@@ -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"