Go Time: Golang, Software Engineering cover image

Don't forget about memory management

Go Time: Golang, Software Engineering

00:00

How to Allocate Objects in Go Routines?

Every go routine has a stack, and mostly you'r your local variables. Things that you do in the course of a function wel live on the stack. Heap as in just like a big old heap of stuff. Lifetime comes into it. If you need a piece of data to hang around while you go call a bunch of other things, or you're going to keep that data and pass it between different gorotines, or youre going to cash it for the entire life of your programm. That needs to live somewhere else.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app