title: How to get number of rows by select query using mysql
body: <p>I'm new in golang. I want to create a login verification from MySQL db.
  I want a method like as in PHP <code>mysqli_num_rows($res) == 1</code>...
  I tried <code>len(rows)</code> or <code>rows.Column()</code> @<code>fmt.Println("No of rows are :", rows)</code> but it won't...
  The code which i tried ... (It is a dummy code) </p>
  
  <pre><code>rows, err := db.Query("select * from userLog where u_name = ? and u_pass = ?", uname, pswd)
  if err != nil {
      log.Fatal(err)
  }
  fmt.Println("No of rows are :", rows)
  defer rows.Close()
  </code></pre>
  
  <p>If you have another solution for login verification purpose then kindly suggest and explain it briefly Kindly help me out.</p>