LaVOZs

The World’s Largest Online Community for Developers

'; go - how to get a sub div using goquery - LavOzs.Com

here is an html sample, it's a big one

<!--- array of that block --->
<div class="main">
     <div class="mainsubdiv1">SomeText</div>
     <div class="mainsubdiv2" id="some_id">
       <div class="subsubdiv1" style="astyle">
             <div class="subsubsubdiv1">

             </div>
             <!---- other divs... --->
       </div>
</div>

I have an array of div,class="main" that contains other subdivs with other subdivs. I would like to extract information on all those subdivs and repeat the action until I reach the last div class=main using goquery. I don't find how to do that efficiently.

Is there anything simple to do to be able to loop through nodes and get the infos ?

Thanks for helping

Related
How to efficiently concatenate strings
How to convert a zero-terminated byte array to string?
goquery- Concatenate a tag with the one that follows
Goquery Select meta[property=og:image]?
GoQuery selection extractor not working
How to break out goquery Each loop in Go
how to get leetcode ranking with goquery
Doctype with goquery
Split element on line break with GoQuery
How to retrieve full HTML of a child element with goquery?