golang iterate through map

package main

import "fmt"

func main() {
    // Creating a map
    myMap := map[string]int{"one": 1, "two": 2, "three": 3}

    // Iterating through the map using a for loop
    for key, value := range myMap {
        // Printing the key and value
        fmt.Printf("Key: %s, Value: %d\n", key, value)
    }
}