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

Method Length

property.go:90–92  ·  view source on GitHub ↗

Length returns the number of elements in the Selection object.

()

Source from the content-addressed store, hash-verified

88
89// Length returns the number of elements in the Selection object.
90func (s *Selection) Length() int {
91 return len(s.Nodes)
92}
93
94// Html gets the HTML contents of the first element in the set of matched
95// elements. It includes text and comment nodes.

Callers 15

SizeMethod · 0.95
IsFunctionMethod · 0.80
IsSelectionMethod · 0.80
IsNodesMethod · 0.80
TestClosestItselfFunction · 0.80
TestClosestNodesItselfFunction · 0.80
BenchmarkFindFunction · 0.80
BenchmarkFindSelectionFunction · 0.80
BenchmarkFindNodesFunction · 0.80
BenchmarkContentsFunction · 0.80

Calls

no outgoing calls

Tested by 15

TestClosestItselfFunction · 0.64
TestClosestNodesItselfFunction · 0.64
BenchmarkFindFunction · 0.64
BenchmarkFindSelectionFunction · 0.64
BenchmarkFindNodesFunction · 0.64
BenchmarkContentsFunction · 0.64
BenchmarkChildrenFunction · 0.64
BenchmarkParentFunction · 0.64