iterating through map code example
Example 1: java iterate through map
for (Map.Entry<String, Object> entry : map.entrySet()) {
String key = entry.getKey();
Object value = entry.getValue();
// ...
}
Example 2: go iterate over map
for k, v := range m {
fmt.Printf("key[%s] value[%s]\n", k, v)
}
// or
for k := range m {
fmt.Printf("key[%s] value[%s]\n", k, m[k])
}