MCPcopy
hub / github.com/PuerkitoBio/goquery / Prepend

Method Prepend

manipulation.go:183–185  ·  view source on GitHub ↗

Prepend prepends the elements specified by the selector to each element in the set of matched elements, following the same rules as Append.

(selector string)

Source from the content-addressed store, hash-verified

181// Prepend prepends the elements specified by the selector to each element in
182// the set of matched elements, following the same rules as Append.
183func (s *Selection) Prepend(selector string) *Selection {
184 return s.PrependMatcher(compileMatcher(selector))
185}
186
187// PrependMatcher prepends the elements specified by the matcher to each
188// element in the set of matched elements.

Callers 2

TestPrependFunction · 0.80
TestPrependBodyFunction · 0.80

Calls 2

PrependMatcherMethod · 0.95
compileMatcherFunction · 0.85

Tested by 2

TestPrependFunction · 0.64
TestPrependBodyFunction · 0.64