title: How to take all keys and values of a map and pass as args to a function in golang?
body: <p>I encountered such a situation：</p>
  
  <p>Got a map first, and <strong>its size is unknown</strong>.</p>
  
  <p>E.g.: <code>myMap map[string]string</code></p>
  
  <p>And then, I would take all the keys and values of the map as a function's args</p>
  
  <p>e.g <code>func(key1, key2, ..., value1, value2, ...)</code></p>
  
  <p>An example func: <a href="https://godoc.org/github.com/garyburd/redigo/redis#Script.Do" rel="nofollow">https://godoc.org/github.com/garyburd/redigo/redis#Script.Do</a></p>
  
  <p>How to achieve this in go?</p>
  
  <p>As efficient as impossible.</p>
  
  <p>Any help will be appreciated :)</p>