title: golang shortcut syntax for slice literal of pointers to structs
body: <p>Given</p>
  
  <pre><code>type foo struct {
      id int
  }
  </code></pre>
  
  <p>the two look equivalent</p>
  
  <pre><code>var foos = []*foo{
      {1},
      {2},
      {3}}
  
  var foos = []*foo{
      &amp;foo{1},
      &amp;foo{2},
      &amp;foo{3}}
  </code></pre>
  
  <p>Why is that? Can't find mentioning of it in TGPL though.  </p>
  
  <p><a href="https://play.golang.org/p/JXxZaybbWnV" rel="nofollow noreferrer">https://play.golang.org/p/JXxZaybbWnV</a></p>