title: How to print the address of struct variable in go
body: <p>I am new to go I want to print the address of struct variable in go 
  here is my program</p>
  
  <pre><code>type Rect struct {
   width int
   name int 
  }
  
  func main() {
   r := Rect{4,6}
   p := &amp;r
   p.width = 15
  
  fmt.Println("-----",&amp;p,r,p,&amp;r)
  
  }
  </code></pre>
  
  <p>output of this </p>
  
  <pre><code>  _____0x40c130 {15 6} &amp;{15 6} &amp;{15 6}
  </code></pre>
  
  <p>but i want to print the address of r variable as i know that '&amp;' represents the address and '*' points the value of pointer location but here i am unable to print the address of r, I am using online editor of go-lang <a href="https://play.golang.org/" rel="noreferrer">https://play.golang.org/</a></p>
  
  <p>As well I want to store this address in some variable.</p>