See also: Stack vs. Heap
- Stack is fast, automatic memory bound to a function call
- Heap is slower, and keeps items which need to remain after a function is done. It is shared.
For a function call, memory is reserved, called a "frame".
Go deals with stack and heap allocation automatically, but knowing the theory is important.