3min chapter

Go Time: Golang, Software Engineering cover image

Don't forget about memory management

Go Time: Golang, Software Engineering

CHAPTER

Using a Pointer or a Value?

If you have an object that has a method on it, or i guess we call receivers and go, if that method is going to edit the object, that cannot be a value receiver. That has to be a pointer receiver, or else you're going to become pretty sad. And of course, if it's a value, it's a copy, so you can't. As well as using pointers for some of your methods, that generally you should use them for algust for consist sake.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode