- map
Empty Map
examples/map/map.go
package main import "fmt" func main() { grades := map[string]int{} fmt.Printf("%T\n", grades) grades["Mary"] = 99 grades["Jane"] = 88 grades["Bob"] = 93 fmt.Println(grades) grade := grades["Jane"] fmt.Println(grade) }