eg:
func main() { scores := map[string]float32{"math": 99.5, "english": 96, "chinese": 88} for k, v := range scores { fmt.Print("key: ", k) fmt.Println("value:", v) } }