3 ms·
>An interface is actually a fat pointer. It stores a pointer to the value, plus information about the type it points to. As it turns out, the information about
by everybodyknows 6y ago
>An interface is actually a fat pointer. It stores a pointer to the value, plus information about the type it points to. As it turns out, the information about the type is actually just another pointer.
Internalizing this understanding was a challenge worth mastering, for my own work. What helped was to make the abstractions concrete in a running program, with the help of Delve's "examine memory" CLI command. Similarly for slices and maps.