title: Golang/mgo: Cannot retrieve value of int field from MongoDB document
body: <p>I am querying a collection that includes an integer value among it's values, and loading resulting documents into this struct:</p>
  
  <pre><code>type Subscription struct {
      Id bson.ObjectId "_id,omitempty"
      Listen string
      Job string
      TimeoutSeconds int
      Data string
  }
  
  
  var subscription Subscription
  
  subscriptions := subscriptionsCol.Find(bson.M{"listen": "example_channel"}).Iter()
  for subscriptions.Next(&amp;subscription) {
      log("Pending job: %s?%s (timeout: %d)\n",
              subscription.Job, 
              subscription.Data, 
              subscription.TimeoutSeconds)
  }
  </code></pre>
  
  <p>This is what phpMoAdmin shows me:</p>
  
  <pre><code>[_id] =&gt; MongoId Object (
      [$id] =&gt; 502ed8d84eaead30a1351ea7
  )
  [job] =&gt; partus_test_job_a
  [TimeoutSeconds] =&gt; 30
  [listen] =&gt; partus.test
  [data] =&gt; a=1&amp;b=9
  </code></pre>
  
  <p>It puzzles me that <code>subscription.TimeoutSeconds</code> contains always 0, when I'm positive I have   <code>30</code> in the document I inserted in the collection.</p>
  
  <p>All other values are retrieved OK.</p>
  
  <p>What's wrong with the int type?</p>