The map data type is built into Golang, so we often use it. It lets us store some value (like the value in the example above) and retrieve it by looking up a key. By contrast, a map lets us take one set of things and set up a one-to-one correspondence.

2m read time From golang.ch
Post cover image

Sort: