Pointers in Go - When to use the ampersand and the asterisk?
Looking back, this might be a dumb question, but that’s what blog notes are for 🤣
tl;dr
&: Used as an operator to get the address of a variable
* in Type: Used to define the type as a pointer (e.g., *int)
* in Expression: Used as an operator to d...
blog.candys.page2 min read