Pointers in Go - When to use the ampersand and the asterisk?
Oct 29, 2025 · 2 min read · 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...
Join discussion







