research!rsc: Go Data Structures

research!rsc: Go Data Structures

When explaining Go to new programmers, I’ve found that it often helps to explain what Go values look like in memory, to build the right intuition about which operations are expensive and which are not. This post is about basic types, structs, arrays, and slices. Basic types Let’s start with some simple examples: The variable…

Read More