jweinst1
4/27/2016 - 9:17 PM

using maps and iterating through keys

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])
	}
}