title: How to get id of last inserted row from sqlx?
body: <p>I'd like to get back the id of the last post inserted into MySql database using <code>sqlx</code>:</p>
  
  <pre><code>resultPost, err := shared.Dbmap.Exec("INSERT INTO post (user_id, description, link) VALUES (?, ?, ?)", userID, title, destPath)
  if err != nil {
      log.Println(err)
      c.JSON(
          http.StatusInternalServerError,
          gin.H{"error": "internal server error"})
  }
  
  fmt.Println("resultPost is:", resultPost)
  </code></pre>
  
  <p>The problem is that the <code>resultPost</code> is printed as an object:</p>
  
  <pre><code>resultPost is: {0xc420242000 0xc4202403a0}
  </code></pre>
  
  <p>So I'm wondering what is the correct way to extract the id of the row just inserted?</p>