Check out example codes for "go add to map". It will help you in understanding the concepts better.

Code Example 1

m := make(map[string]int)
m["numberOne"] = 1
m["numberTwo"] = 2

Code Example 2

// By default maps in Go behaves like a default dictionary in python
m := make(map[string]int)

m["Dio"] = 3
m["Jonathan"] = 1

Learn ReactJs, React Native from akashmittal.com