title: Marshall map to XML in Go
body: <p>I'm trying to output a map as XML data, however I receive the following error: </p>
  
  <pre><code>xml: unsupported type: map[string]int
  </code></pre>
  
  <p>Marshalling maps works fine for JSON so I don't get why it wouldn't work the same for XML. Is using a Struct really the only way?</p>