func (this *contentExtractor) walkSiblings(node *goquery.Selection) []*goquery.Selection { currentSibling := node.Prev() b := make([]*goquery.Selection, 0) for currentSibling.Length() != 0 { b = append(b, currentSibling) previousSibling := currentSibling.Prev() currentSibling = previousSibling } return b }
func (extr *ContentExtractor) walkSiblings(node *goquery.Selection) []*goquery.Selection { currentSibling := node.Prev() var b []*goquery.Selection for currentSibling.Length() != 0 { b = append(b, currentSibling) previousSibling := currentSibling.Prev() currentSibling = previousSibling } return b }