Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
package main import ("fmt") func main() { var a = map[string]string{"brand": "Ford", "model": "Mustang", "year": "1964"} b := map[string]int{"Oslo": 1, "Bergen": 2, "Trondheim": 3, "Stavanger": 4} fmt.Printf("a\t%v\n", a) fmt.Printf("b\t%v\n", b) }
a map[brand:Ford model:Mustang year:1964] b map[Bergen:2 Oslo:1 Stavanger:4 Trondheim:3]