gitee.com/quant1x/gox@v1.21.2/concurrent/hashmap_test.go (about) 1 package concurrent 2 3 import ( 4 "fmt" 5 "testing" 6 ) 7 8 func TestHashMap(t *testing.T) { 9 m := v1NewHashmap[string, string]() 10 m.Put("a", "1") 11 v, ok := m.Get("a") 12 fmt.Println(v, ok) 13 }