title: Assigning map of slices in a struct in Golang
body: <p>How to correctly assign a map of slices to a struct in Golang?
  I tried to following, but it does not work:</p>
  <pre><code>package main
  
  import (
      &quot;fmt&quot;
  )
  
  type Test struct {
      name     string
      testCase map[string][]string
  }
  
  var t = Test{
      name: &quot;myTest&quot;,
      testCase: map[string][]string{&quot;key&quot;: {&quot;value1&quot;, &quot;value2&quot;}}
  }
  
  func main() {
  
      fmt.Println(t)
  }
  </code></pre>
  <p>.\main.go:14:61: syntax error: unexpected newline, expecting comma or }</p>