title: Capitals in struct fields
body: <p>I'm using this library to access CouchDB (cloudant to be specific) "github.com/mikebell-org/go-couchdb" and I've noticed a problem. </p>
  
  <p>When I go to add a file to the database and pass in a struct, only the fields of the struct which started with a capital letter get added. </p>
  
  <p>For example </p>
  
  <pre><code>type Person struct {
      name string
      Age  int
  }
  
  func main() {
      db, _ := couchdb.Database(host, database, username, password)
      joe := Person{
          name: "mike",
          Age:  190,
      }
      m, _ := db.PostDocument(joe)
  }
  </code></pre>
  
  <p>In this case, only the "age" field got updated and inserted into my database.</p>
  
  <p>I've noticed this problem in another case also - when I'm doing something like this : </p>
  
  <pre><code>type Sample struct {
      Name string
      age  int 
  }
  
  
  joe := Sample{
      Name: "xx",
      age:  23,
  }
  
  byt, _ := json.Marshal(joe)
  
  post_data := strings.NewReader(string(byt))
  fmt.Println(post_data)
  </code></pre>
  
  <p>in this case, only Name would be printed out : </p>
  
  <pre><code>output : &amp;{{"Name":"xx"} 0 -1}
  </code></pre>
  
  <p>Why is this? and If I would like to have a field with a lowercase and be inside the database, is that possible?</p>