title: Parenthesis after a slice in go?
body: <p>I've recently started learning go, and following through a <a href="https://golang.org/doc/articles/wiki/" rel="nofollow">tutorial</a>. In the tutorial there is the line:</p>
  
  <pre><code>p1 := &amp;Page{Title: "TestPage", Body: []byte("This is a sample Page.")}
  </code></pre>
  
  <p>They have a slice with parenthesis defined:</p>
  
  <pre><code>[]byte("This is a sample Page.")
  </code></pre>
  
  <p>However from all the docs I've read I've never seen parenthesis after a slice. I've only seen the format:</p>
  
  <pre><code>b := []byte{'g', 'o', 'l', 'a', 'n', 'g'}
  </code></pre>
  
  <p>Using the curly braces. What is the role of the parenthesis?</p>