The Go spec states:
The new value of the empty map is performed using the built-in function make, which takes the type of map and optional hint as arguments:
make(map[string]int) make(map[string]int, 100)
The initial capacity does not limit its size: cards grow to accommodate the number of items stored in them
So no, you donβt need to make any selections on the map once you have created it. This is done internally using the Go runtime. The extra capacity used to create the map is just a hint, not a limitation.
source share