title: golang Gorp error with SELECT
body: <p>I am trying to do a SELECT from mySQL database with GORP.
  I am getting an error which says <strong>"reflect.Value.Interface: cannot return value obtained from unexported field or method".</strong> 
  I have verified the DB connectivity. For example Select (*) count gives the right count. I see that it fails on </p>
  
  <blockquote>
    <p>dbmap.Select(&amp;dd, "SELECT * FROM kd_dropdowns")</p>
  </blockquote>
  
  <p>Without the above line program does not throw any error.</p>
  
  <p>Here is my code.</p>
  
  <pre><code>package main
  import (
  "database/sql"
  "fmt"
  "log"
  "net/http"
  
  "github.com/coopernurse/gorp"
  _ "github.com/go-sql-driver/mysql"
  "github.com/gorilla/mux"
  )
  
  func main() {
  
  fmt.Println("reached main")
  // Create a MUX
  r := mux.NewRouter()
  
  //manegala patti
  r.HandleFunc("/manegalu", manegalaTorisu).Methods("GET")
  
  http.ListenAndServe(":8080", r)
  
  }
  func manegalaTorisu(w http.ResponseWriter, r *http.Request) {
  type Dropdowns struct {
      dd_id      int64  `db:"dd_id"`
      identifier int64  `db:"identifier"`
      name       string `db:"name"`
      active     string `db:"active"`
  }
  
  db, err := sql.Open("mysql", "krishna:xxxx@/kd")
  defer db.Close()
  
  var dbmap *gorp.DbMap
  // construct a gorp DbMap
  dbmap = &amp;gorp.DbMap{Db: db, Dialect: gorp.MySQLDialect{}}
  
  var dd []Dropdowns
  _, err = dbmap.Select(&amp;dd, "SELECT * FROM kd_dropdowns")
  checkErr(err, "Select failed")
  fmt.Fprint(w, "Success")
  }
  
  func checkErr(err error, msg string) {
  if err != nil {
      log.Fatalln(msg, err)
  }
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/HLrqJ.jpg" alt="This is how table looks in mySQL"></p>