1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-18 08:32:40 +08:00

sort map move to generics

This commit is contained in:
2022-04-22 17:17:02 +08:00
parent e06c8e3463
commit 5f6130ae58
3 changed files with 133 additions and 2 deletions

View File

@ -13,8 +13,8 @@ import (
func TestConcurrentMap(t *testing.T) {
t.Log(runtime.GOMAXPROCS(runtime.NumCPU()))
key := "abc"
value := "bcd"
key := "aaabc"
value := "aabcd"
m := generics.NewConcurrnetMap[string, string]()
m.Set(key, value)