fork download
  1. package main
  2.  
  3. import (
  4. "fmt"
  5. )
  6.  
  7. type Vertex struct {
  8. X, Y float64
  9. }
  10.  
  11. func main() {
  12. v := Vertex{3, 4}
  13. vPtr := &v
  14. vvPtr := &vPtr
  15. vvvPtr := &vvPtr
  16. fmt.Println(vPtr)
  17. fmt.Println(vvPtr)
  18. fmt.Println(vvvPtr)
  19. }
Success #stdin #stdout 0.01s 7616KB
stdin
Standard input is empty
stdout
&{3 4}
0xc00000e030
0xc00000e038