Create map with data in it already
examples/map-with-data/map_with_data.go
package main import "fmt" func main() { grades := map[string]int{ "Mary": 99, "Jane": 88, "Bob": 93, } fmt.Printf("%T\n", grades) // map[string]int fmt.Println(grades) // map[Bob:93 Jane:88 Mary:99] }