title: what does the symbol [:] mean in Go?
body: <p>I found this in some code:</p>
  
  <pre><code>h := s.Hash(tx)
  sig, err := crypto.Sign(h[:], prv)
  </code></pre>
  
  <p>What does <code>[:]</code> mean ?
  If this is the full slice of the array, why not to pass the array itself? What kind of coding style is this, I wonder...</p>