Data-Structures

2026
Arrays and slices are closely related but behave very differently. Confusing them is a common source of bugs and a reliable interview topic. For a deeper runtime dive, see Slice internals.
Maps are Go’s built-in hash table. They are fast and easy to use, but they have several sharp corners that interviews frequently probe.