title: Cannot use "a" (type string) as type in array element in go
body: <p>I'm pretty new to Golang and I have an issue with adding items to Array.</p>
  <p>I use this link as a reference <a href="http://www.golang-book.com/6/index.htm#section1" rel="nofollow noreferrer">golang-book</a>.</p>
  <p>I have this struct:</p>
  <pre><code>package models
  
  type FileMD struct {
      fileName string
      fileSize int
  }
  </code></pre>
  <p>I tried to do it both ways but I failed.</p>
  <pre><code>fileList := [...]models.FileMD{&quot;a&quot;, 1: &quot;b&quot;, 2}
  var fileList [...]models.FileMD
  fileList[0] = &quot;a&quot;, 1
  </code></pre>
  <p>What is the correct way?</p>