title: How to scrape what is heading of a h1 tag using golang?
body: <p>Suppose this is a h1 tag</p>
  
  <pre><code>&lt;h1&gt;FindMe&lt;/h1&gt;
  </code></pre>
  
  <p>in a huge webpage with many other h1 tags, but this is the first h1 tag. So I am using the net/html package and I am searching for the first StartTagToken, after my program has found the token, how do I get what is written inside the heading i.e. FindMe in this case.</p>
  
  <p>This is the code I have right now</p>
  
  <pre><code>z := html.NewTokenizer(body)    
  
  for{
      tt := z.Next()
  
      if tt= html.ErrorToken{
          return
      }
      else if tt== html.StartTagToken{
          tag := z.Token()
  
          if tag.Data =="h1"{
              fmt.Println("We found the title\n")
              //some code to find what is stored in the heading
          }
      }
  } 
  </code></pre>
  
  <p>How do I go about doing that?</p>
  
  <p>EDIT: More specifically, what is the property of variable tag which would give me the text inside of it. I may be wrong with the conceptual terms here. Please bear with me</p>