title: Range references instead values
body: <p>I saw that range returns the key and the &quot;copy&quot; of the value. Is there a way for that range to return the address of the item? Example</p>
  <pre><code>package main
  
  import &quot;fmt&quot;
  
  type MyType struct {
      field string
  }
  
  func main() {
      var array [10]MyType
  
      for _, e := range array {
          e.field = &quot;foo&quot;
      }
  
      for _, e := range array {
          fmt.Println(e.field)
          fmt.Println(&quot;--&quot;)
      }
  }
  </code></pre>
  <p><a href="http://play.golang.org/p/AFOGG9NGpx" rel="noreferrer">http://play.golang.org/p/AFOGG9NGpx</a></p>
  <p>Here &quot;field&quot; is not modified because range sends the copy of field.
  Do I have to use index or is there any other way to modify the value?</p>