title: Iterating through a golang map
body: <p>I have a map of type: <code>map[string]interface{}</code></p>
  
  <p>And finally, I get to create something like (after deserializing from a yml file using goyaml)</p>
  
  <pre><code>mymap = map[foo:map[first: 1] boo: map[second: 2]]
  </code></pre>
  
  <p>How can I iterate through this map? I tried the following:</p>
  
  <pre><code>for k, v := range mymap{
  ...
  }
  </code></pre>
  
  <p>But I get an error:</p>
  
  <pre><code>cannot range over mymap
  typechecking loop involving for loop
  </code></pre>
  
  <p>Please help.</p>