aboutsummaryrefslogtreecommitdiffstats
path: root/exercises/maps
diff options
context:
space:
mode:
Diffstat (limited to 'exercises/maps')
-rw-r--r--exercises/maps/maps1/main.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/exercises/maps/maps1/main.go b/exercises/maps/maps1/main.go
new file mode 100644
index 0000000..7532d4b
--- /dev/null
+++ b/exercises/maps/maps1/main.go
@@ -0,0 +1,16 @@
+// maps1
+// Make me compile!
+//
+// I AM NOT DONE
+//
+package main
+
+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[])
+}