title: How do I convert a database row into a struct
body: <p>Let's say I have a struct:</p>
  
  <pre><code>type User struct {
      Name  string
      Id    int
      Score int
  }
  </code></pre>
  
  <p>And a database table with the same schema. What's the easiest way to parse a database row into a struct? I've added an answer below but I'm not sure it's the best one.</p>