Curriculum Collections Maps exercise 1 · mcq
Maps
Declare an empty Go map you can write keys into immediately. Maps need to be MADE before write — same family as slices.
TypeScript reference
About this theme
map[K]V. Like a TS Record<K, V> or Map<K, V>. Lookup with comma-ok: v, ok := m[key]. Iteration order is undefined — every range yields a different ordering. Maps are reference types; passing a map to a function shares it.