Golang: interface func to print memory address
问题 I am curious as to why just printing the memory address on a var directly works but trying to do the same action through an interface doesn't print out the memory address? package main import "fmt" type address struct { a int } type this interface { memory() } func (ad address) memory() { fmt.Println("a - ", ad) fmt.Println("a's memory address --> ", &ad) } func main() { ad := 43 fmt.Println("a - ", ad) fmt.Println("a's memory address --> ", &ad) //code init in here thisAddress := address{ a: