Files
goquery/iterators.go
2012-08-30 13:43:44 -04:00

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
}