Pointers in Golang
Hey Gopher, how’s it going? Lately, I’ve been dedicating my free time to studying Golang, and I must admit it’s been an interesting and challenging journey. During my learning process, I initially had some “resistance” in understanding what pointers actually are. Coincidentally, while following some blogs and pages about Go, I noticed that many people face the same obstacle — and that’s completely normal. That’s why I decided to create this space to write a bit about them. So, what is a pointer? A pointer is simply a variable whose content is a memory address. If you share this pointer elsewhere, we can directly access the address where the data is stored, and from there, manipulate that memory space in some way. ...