How to get the memory address of a variable in Go or Golang?
Originally Published Here ๐!
To get the memory address of a variable in Go or Golang, you can use the & symbol (ampersand) followed by the name of the variable you wish to get the memory address of.
TL;DR
package main
import "fmt"
func main(){
...
melvingeorge-me.hashnode.dev2 min read