Memory Management in Go: The Trip to Assembly and Escape Analysis
Stack, Heap, Escape Analysis
A practical tour of stack vs heap in Go, how escape analysis works, how to inspect compiler decisions with -gcflags='-m', and how to connect them to generated assembly.
