Look at the following code snippet.
package main
import (
"fmt"
)
type class struct {
prop1 string
prop2 string
}
func main() {
va1 := &class{"Hello", "Foo"}
fmt.Println(&va1)
va1 = &class{"TOO", "Boo"}
fmt.Println(&va1)
}
As a result I've got the same pointed address.
0x1215a0c0
0x1215a0c0
With &T{} it will allocate new zeroed value address. But why here I've got the same address? Do I just override on second assignment the value?