title: Creating a flat array from the map entries in Go
body: <p>What is the shortest (and idiomatic) way to create an array from the keys and values of a map w/o compromising on time complexity too much?</p>
  
  <p>For instance, from the following map: </p>
  
  <pre><code>map[string]string { "1":"a", "2":"b" }
  </code></pre>
  
  <p>I need to create the following array:</p>
  
  <pre><code>[]string{"1","a", "2","b"}
  </code></pre>
  
  <p>I can do this in Scala with following:</p>
  
  <pre><code>val myMap = Map("1" -&gt; "a", "2" -&gt; "b")
  myMap.keySet ++ myMap.values
  </code></pre>
  
  <p>Thank you.</p>