DEV Community

Discussion on: The Proper Use of Pointers in Go (golang)

Collapse
 
devdrake0 profile image
Si

If you think of a computer’s memory (RAM) as a JSON object, a pointer would be like the key, and a normal variable would be the value.

This could quite possibly be the simplest description of a pointer I've read. I'll be using this the next time I have to explain them.

bravo

Collapse
 
jorgee97 profile image
Jorge Gomez

Totally agree with you, couldn't be simpler.