3 ms·No, it doesn't. Go does escape analysis and allocates stuff on heap if needed.by xfer 8y agoNo, it doesn't. Go does escape analysis and allocates stuff on heap if needed.