title: How to get multiple element on a page with go colly
body: <p>I have an struct as following: </p>
  
  <pre><code>Type Post struct{
       ID int64
       Title string
       Content string
  }
  </code></pre>
  
  <p>I Curl a web page for receive data with <a href="http://go-colly.org/" rel="nofollow noreferrer">Go Colly</a>, I have two OnHtml method as following:</p>
  
  <pre><code>func main() {
      c := colly.NewCollector()
  
      c.OnHTML("p", func(e *colly.HTMLElement) {
          Post := Post{
             Content: e.Text
          }
          db.Create(&amp;Post)
      })
      c.OnHTML("h", func(e *colly.HTMLElement) {
          Post := Post{
             Title: e.Text
          }
          db.Create(&amp;Post)        
      })
  
      c.Visit("http://go-colly.org/")
  }
  </code></pre>
  
  <p>The above code works well but this create two row in database as following:</p>
  
  <pre><code>+--------------+---------------+---------------+
  |      id      |     title     |    content    |
  +--------------+---------------+---------------+
  |       1      |      Hello    |      Null     |
  +--------------+---------------+---------------+
  |       2      |      Null     | Mycontent ... |
  +--------------+---------------+---------------+
  </code></pre>
  
  <p>i want to create it :</p>
  
  <pre><code>+--------------+---------------+---------------+
  |      id      |     title     |    content    |
  +--------------+---------------+---------------+
  |       1      |      Hello    | Mycontent ... |
  +--------------+---------------+---------------+
  </code></pre>
  
  <p>how can I get two element and save in one row in go colly?</p>