Go Map iterate using for loop
package main /*w w w. jav a2s . co m*/ import "fmt" func main() { var employee = map[string]int{"A": 10, "B": 20,"C": 30, "D": 40, "E": 50} for key, element := range employee { fmt.Println("Key:", key, "=>", "Element:", element) } }