title: Reading XML with golang
body: <p>I'm trying to read som XML with golang. I'm basing it on this example which works. <a href="https://gist.github.com/kwmt/6135123#file-parsetvdb-go" rel="noreferrer">https://gist.github.com/kwmt/6135123#file-parsetvdb-go</a></p>
  
  <p>This is my files:</p>
  
  <p>Castle0.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  &lt;Channel&gt;
  &lt;Title&gt;test&lt;/Title&gt;
  &lt;Description&gt;this is a test&lt;/Description&gt;
  &lt;/Channel&gt;
  </code></pre>
  
  <p>test.go</p>
  
  <pre><code>package main
  
  import (
      "encoding/xml"
      "fmt"
      "io/ioutil"
      "os"
  )
  
  type Query struct {
      Chan Channel `xml:"Channel"`
  }
  
  type Channel struct {
      title    string `xml:"Title"`
      desc string `xml:"Description"`
  }
  
  
  func (s Channel) String() string {
      return fmt.Sprintf("%s - %d", s.title, s.desc)
  }
  
  func main() {
      xmlFile, err := os.Open("Castle0.xml")
      if err != nil {
          fmt.Println("Error opening file:", err)
          return
      }
      defer xmlFile.Close()
  
      b, _ := ioutil.ReadAll(xmlFile)
  
      var q Query
      xml.Unmarshal(b, &amp;q)
  
      fmt.Println(q.Chan)
  
  }
  </code></pre>
  
  <p>Output:
   - %!d(string=)</p>
  
  <p>Any one know what I'm doing wrong? (I'm doing this to learn go, so go easy on me :P)</p>