title: Go array slice from function return statement
body: <p>I have the following functions:</p>
  
  <pre><code>func (c *Class)A()[4]byte
  func B(x []byte)
  </code></pre>
  
  <p>I want to call</p>
  
  <pre><code>B(c.A()[:])
  </code></pre>
  
  <p>but I get this error:</p>
  
  <pre><code>cannot take the address of c.(*Class).A()
  </code></pre>
  
  <p>How do I properly get a slice of an array returned by a function in Go?</p>