aboutsummaryrefslogtreecommitdiffstats
path: root/exercises/maps/maps1/main.go
blob: 81fca26170ad400256ad7f661a78b210d6a99489 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// maps1
// Make me compile!
//
// I AM NOT DONE
//
package main

import "fmt"

func main() {
	// Map with people names and their ages
	m := make(map)

	m["John"] = 30
	m["Ana"] = 21

	fmt.Printf("John is %d and Ana is %d", m[], m[])
}