diff options
author | MaurĂcio Antunes <mauricio.abreua@gmail.com> | 2022-11-28 11:24:17 -0300 |
---|---|---|
committer | MaurĂcio Antunes <mauricio.abreua@gmail.com> | 2022-11-28 11:24:17 -0300 |
commit | df05d6846a856ded638406bae0b863ade6413626 (patch) | |
tree | a323420b126761191256d97ca049b2c23d32cfad /exercises/maps/maps1/main.go | |
parent | 525d58dc41bf3d92427b53892a5b676c9ce00926 (diff) |
feat: new map exercise
Diffstat (limited to 'exercises/maps/maps1/main.go')
-rw-r--r-- | exercises/maps/maps1/main.go | 16 |
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[]) +} |