title: Store value in an array
body: <p>I am fairly new to Go. I have coded in JavaScript where I could do this:</p>
  
  <pre><code>var x = [];
  x[0] = 1;
  </code></pre>
  
  <p>This would work fine. But in Go, I am trying to implement the same thing with Go syntax. But that doesn't help. I need to have a array with unspecified index number.</p>
  
  <p>I did this:</p>
  
  <pre><code>var x []string
  x[0] = "name"
  </code></pre>
  
  <p>How do I accomplish that?</p>