Skip to main content
All lessons

Maps

8 min · Go

Look up values by key with map — Go's dictionary.

Go · Maps0/5 cleared

Enemy 1 of 5

A map stores key-value pairs. map[string]int creates an empty string-to-int map; m[key] = value stores and m[key] reads.

You
Pincer Crab

Loading editor...

Ln 1, Col 1Spaces: 4
Sign up to fightTarget output: 10