title: Go, Golang : array type inside struct, missing type composite literal
body: <p>I need to add slice type to this struct.</p>
  
  <pre><code> type Example struct {
      text  []string
   }
  
   func main() {
      var arr = []Example {
          {{"a", "b", "c"}},
      }
      fmt.Println(arr)    
   }
  </code></pre>
  
  <p>Then I am getting</p>
  
  <pre><code>  prog.go:11: missing type in composite literal
    [process exited with non-zero status]
  </code></pre>
  
  <p>So specify the composite literal</p>
  
  <pre><code>    var arr = []Example {
           {Example{"a", "b", "c"}},
  </code></pre>
  
  <p>But still getting this error:</p>
  
  <pre><code>    cannot use "a" (type string) as type []string in field value
  </code></pre>
  
  <p><a href="http://play.golang.org/p/XKv1uhgUId" rel="noreferrer">http://play.golang.org/p/XKv1uhgUId</a></p>
  
  <p>How do I fix this? How do I construct the struct that contains array(slice) type?</p>