title: How to create an array of struct arrays of different types?
body: <p>In my program I got 2 models:</p>
  
  <pre><code>type User struct {
      Name string
  }
  
  type Article struct {
      Title string
  }
  </code></pre>
  
  <p>And I got arrays of data of these structs:</p>
  
  <pre><code>users := []User
  articles := []Article
  </code></pre>
  
  <p>I'm trying to iterate over both of them at the same piece of code:</p>
  
  <pre><code>models := [][]interface{} {users, articles}
  for _, model := range models {
      log.Printf("%#v", model)
  }
  </code></pre>
  
  <p>But I'm receiving an error:</p>
  
  <pre><code>cannot use users (type []User) as type []interface {} in array element
  </code></pre>
  
  <p>What am I doing wrong?</p>