2 ms·
> My understanding is, the string itself is on the stack, but the data is on the heap What makes you say that? Pointers to stack are totally possible in Go; ju
by yencabulator 8y ago
> My understanding is, the string itself is on the stack, but the data is on the heap
What makes you say that? Pointers to stack are totally possible in Go; just because the `str` field is a pointer doesn't mean it points to the heap.