using maps and iterating through keys
package main import "fmt"; func main() { fmt.Println("hi") x := make(map[string]string) x["first"] = "one" x["second"] = "two" for elem := range x { fmt.Println("Capital of",elem,"is",x[elem]) } }