mirror of
https://github.com/PuerkitoBio/goquery
synced 2025-10-05 16:56:57 +08:00
10 lines
218 B
Go
10 lines
218 B
Go
package goquery
|
|
|
|
// Returns this (same Selection object)
|
|
func (this *Selection) Each(f func(int, *Selection)) *Selection {
|
|
for i, n := range this.Nodes {
|
|
f(i, newSingleSelection(n, this.document))
|
|
}
|
|
return this
|
|
}
|