title: Should we also close DB's .Prepare() in Golang?
body: <p>From <a href="https://github.com/mindreframer/golang-stuff/tree/master/github.com/VividCortex/go-database-sql-tutorial" rel="nofollow">this</a> tutorial shown that <code>rows.Closed()</code> must be called where <code>rows</code> is from <code>stmt.Query()</code>, is <code>stmt.Closed()</code> also should be called where <code>stmt</code> is from <code>db.Prepare()</code>? </p>
  
  <pre><code>// inside a function
  stmt, err := db.Prepare(cmd) // cmd is SQL string
  Check(err)
  // should we add: defer stmt.Close()
  rows, err := stmt.Query(params) // params is map/interface{}
  defer rows.Close()
  Check(err)
  </code></pre>