Answers for "golang how to iterate over "map of functions""

Go
0

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))
}
Posted by: Guest on June-12-2020

Code answers related to "golang how to iterate over "map of functions""

Browse Popular Code Answers by Language