
Pointer
Go has pointers. A pointer holds the memory address of a value.
The type*T is a pointer to a T value. Its zero value is nil.
var p *int
The & operator generates a pointer to its operand.
i := 42
p = &i
The * operator denotes the pointer's underlying ...
Read: https://blog.cloudnativefolks.org/pointer
Go has pointers. A pointer holds the memory address of a value.
The type*T is a pointer to a T value. Its zero value is nil.
var p *int
The & operator generates a pointer to its operand.
i := 42
p = &i
The * operator denotes the pointer's underlying ...
Read: https://blog.cloudnativefolks.org/pointer