mirror of
https://github.com/charlienet/go-mixed.git
synced 2025-07-18 00:22:41 +08:00
maps
This commit is contained in:
@ -16,3 +16,12 @@ func TestHashMap(t *testing.T) {
|
||||
_ = m
|
||||
|
||||
}
|
||||
|
||||
func TestIter(t *testing.T) {
|
||||
m := maps.NewHashMap[string, string]()
|
||||
m.Set("abc", "abc")
|
||||
|
||||
for e := range m.Iter() {
|
||||
t.Log(e.Key, e.Value)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user