I want to parse value of particular div of HTML.Eg.I have class like "funcname" so can i parse value at this div in golang?
You can use the github.com/PuerkitoBio/goquery package. If you're familar with jQuery selectors, it won't be a problem for you.
doc, err := goquery.NewDocument(contents)
// handle err
doc.Find(".funcname")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With