title: Can I Use the Address of a returned value?
body: <p>I have a function that returns a <code>string</code>, and a structure that wants a <code>string*</code>.  Currently I'm doing this <a href="https://play.golang.org/p/rFfeONFS33" rel="nofollow noreferrer">https://play.golang.org/p/rFfeONFS33</a></p>
  
  <pre><code>stupid := a()
  y.z = &amp;stupid
  </code></pre>
  
  <p>What I want (doesn't work) <a href="https://play.golang.org/p/Hhh8GP7JJl" rel="nofollow noreferrer">https://play.golang.org/p/Hhh8GP7JJl</a></p>
  
  <pre><code>z.y = &amp;(a())
  </code></pre>
  
  <p>Is this because returned values are using the stack?  Is there a more elegant way than allocating some other variable with a nonsense name?</p>