title: Creating a slice of slice of interfaces in go
body: <p>I'm trying to create a function that returns the all the <code>key, value</code> of a <code>map</code> as a <code>slice</code> of <code>slice</code> of tuples (where each tuple is <code>{key, value}</code>)</p>
  
  <p>Here's the code:</p>
  
  <pre><code>func ReturnTuples(map_ map[interface{}]interface{}) [][]interface{} {
      toReturn := []([]interface{})
      ...
  </code></pre>
  
  <p>But I'm getting error for the <code>toReturn</code> line:</p>
  
  <pre><code>type [][]interface {} is not an expression
  </code></pre>
  
  <p>How should I declare a slice of slice of interfaces? I see this as the only way. I tried without parenthesis like:</p>
  
  <pre><code>[][]interface{}
  </code></pre>
  
  <p>but it won't work either.</p>
  
  <p>I tried to search for 'golang slice of slice' on google but very few things appear. For example I've only found how to create a simple one made of <code>uint8</code>, which is: <code>[][]uint8</code>.</p>