Pointers in Go are variables that store the memory address of another variable. They are denoted by the * symbol preceding the type of variable they will point to. For example, to declare a pointer to an integer variable, you would write var ptr *int...

Markdown supported · ⌘↵ to post
Gemma Black
I haven't started with Go yet so this was helpful.
Would this remove the pointer/reference then from the
ptrvariable tox...ptr = 21... when the star syntax is not used?