Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //..
- // Evaluate Tokens for H2
- switch token.Data {
- case "h2":
- // Fetch next token within H2 and extract its text content.
- tokenType = z.Next()
- if tokenType == html.TextToken {
- name := z.Token().Data
- fmt.Println("Name:", name)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement