how to loop throung map in golang code example
Example: golang iterate through map
var m = map[string]string{}
m["key"] = "value"
m["someOtherKey"] = "someOtherValue"
for key, value := range m {
fmt.Println(fmt.Sprintf("%s : %s", key, value))
}
var m = map[string]string{}
m["key"] = "value"
m["someOtherKey"] = "someOtherValue"
for key, value := range m {
fmt.Println(fmt.Sprintf("%s : %s", key, value))
}