MCPcopy Create free account

hub / github.com/crufter/goquery / functions

Functions196 in github.com/crufter/goquery

↓ 1 callersFunctionfprint
(w io.Writer, n *Node, lev int)
goquery.go:46
↓ 1 callersFunctiongetLevStr
(lev int)
goquery.go:38
↓ 1 callersFunctionhash
The hash function must be the same as the one used in gen.go
exp/html/atom/atom.go:21
↓ 1 callersFunctionid
(c *selector, str string)
goquery.go:166
↓ 1 callersFunctionidentifier
identifier converts s to a Go exported identifier. It converts "div" to "Div" and "accept-charset" to "AcceptCharset".
exp/html/atom/gen.go:42
↓ 1 callersMethodinForeignContent
Section 12.2.5.
exp/html/parse.go:1898
↓ 1 callersFunctioninSelectIM
Section 12.2.5.4.16.
exp/html/parse.go:1546
↓ 1 callersFunctionmapFromAttr
(a []html.Attribute)
goquery.go:82
↓ 1 callersFunctionname
(c *selector, str string)
goquery.go:140
↓ 1 callersFunctionparseDoctype
parseDoctype parses the data from a DoctypeToken into a name, public identifier, and system identifier. It returns a Node whose Type is DoctypeNode, w
exp/html/doctype.go:16
↓ 1 callersFunctionparseForeignContent
Section 12.2.5.5.
exp/html/parse.go:1824
↓ 1 callersFunctionparseSingleSel
(str string)
goquery.go:191
↓ 1 callersMethodread
read reads the next token from the tokenizer.
exp/html/parse.go:374
↓ 1 callersMethodreadComment
readComment reads the next comment token starting with "<!--". The opening "<!--" has already been consumed.
exp/html/token.go:285
↓ 1 callersMethodreadEndTag
readEndTag reads the next end tag token. The opening "</a" has already been consumed, where 'a' means anything in [A-Za-z].
exp/html/token.go:465
↓ 1 callersMethodreadMarkupDeclaration
readMarkupDeclaration reads the next token starting with "<!". It might be a "<!--comment-->", a "<!DOCTYPE foo>", or "<!a bogus comment". The opening
exp/html/token.go:348
↓ 1 callersFunctionreadParseTest
readParseTest reads a single test case from r.
exp/html/parse_test.go:26
↓ 1 callersMethodreadRawOrRCDATA
readRawOrRCDATA reads until the next "</foo>", where "foo" is z.rawTag and is typically something like "script" or "textarea".
exp/html/token.go:237
↓ 1 callersMethodreadStartTag
readStartTag reads the next start tag token. The opening "<a" has already been consumed, where 'a' means anything in [A-Za-z].
exp/html/token.go:410
↓ 1 callersMethodreadTagAttrKey
readTagAttrKey sets z.pendingAttr[0] to the "k" in "<div k=v>". Precondition: z.err == nil.
exp/html/token.go:502
↓ 1 callersMethodreadTagAttrVal
readTagAttrVal sets z.pendingAttr[1] to the "v" in "<div k=v>".
exp/html/token.go:523
↓ 1 callersFunctionrecur
(n *Node, action func(*Node))
goquery.go:66
↓ 1 callersFunctionrecurStop
(lev int, n *Node, action func(*Node, int) bool)
goquery.go:73
↓ 1 callersFunctionrecurUp
(ns Nodes, f func(e *Node))
goquery.go:367
↓ 1 callersFunctionrecurUpBool
(ns Nodes, f func(e *Node) bool)
goquery.go:376
↓ 1 callersFunctionremoveAttr
(ns Nodes, key string)
goquery.go:328
↓ 1 callersFunctionrender1
(w writer, n *Node)
exp/html/render.go:68
↓ 1 callersFunctionreparentChildren
reparentChildren reparents all of src's child nodes to dst.
exp/html/node.go:71
↓ 1 callersFunctiontestParseCase
testParseCase tests one test case from the test files. It returns a parseTestResult indicating how much of the test passed. If the result is not parse
exp/html/parse_test.go:303
↓ 1 callersFunctiontext
(buf *bytes.Buffer, n *Node)
goquery.go:634
MethodAddClass
Here comes the JQuery-like API. Unfinished Adds the specified class(es) to each of the set of matched elements.
goquery.go:391
MethodAttr
Get the value of an attribute for the first element in the set of matched elements. or Set one or more attributes for the set of matched elements.
goquery.go:397
FunctionBenchmarkHighLevelTokenizer
(b *testing.B)
exp/html/token_test.go:683
FunctionBenchmarkLookup
(b *testing.B)
exp/html/atom/atom_test.go:57
FunctionBenchmarkLowLevelTokenizer
(b *testing.B)
exp/html/token_test.go:682
FunctionBenchmarkParser
(b *testing.B)
exp/html/parse_test.go:392
FunctionBenchmarkRawLevelTokenizer
(b *testing.B)
exp/html/token_test.go:681
MethodEach
(f func(index int, element *Node))
goquery.go:411
MethodEq
Reduce the set of matched elements to the one at the specified index. index is an integer indicating the 0-based position of the element. -index is an
goquery.go:420
MethodFirst
Reduce the set of matched elements to those that match the selector or pass the function's test.
goquery.go:445
MethodHas
Reduce the set of matched elements to those that have a descendant that matches the selector or DOM element.
goquery.go:485
MethodIs
Check the current matched set of elements against a selector/*, element, or jQuery object*/ and return true if at least one of these elements matches
goquery.go:458
MethodLast
Reduce the set of matched elements to the final one in the set.
goquery.go:471
MethodLen
()
exp/html/parse_test.go:112
MethodLen
()
exp/html/atom/gen.go:36
MethodLength
Returns the number of elements in the GoQuery object.
goquery.go:480
MethodLess
(i, j int)
exp/html/parse_test.go:116
MethodLess
(i, j int)
exp/html/atom/gen.go:37
MethodNot
Remove elements from the set of matched elements.
goquery.go:526
MethodOuterHtml
Not in jQuery. Get the HTML contents of the first element in the set of matched elements, including the current element.
goquery.go:600
MethodOuterHtmlAll
Not in jQuery. Get the HTML contents of all elements in the set of matched elements, including the current elements.
goquery.go:606
MethodParent
Get the parent of each element in the current set of matched elements, optionally filtered by a selector.
goquery.go:536
MethodParents
Get the ancestors of each element in the current set of matched elements, optionally filtered by a selector.
goquery.go:556
MethodParentsUntil
Get the ancestors of each element in the current set of matched elements, up to but not including the element matched by the selector, DOM node, or jQ
goquery.go:579
FunctionParseString
Parses a string which contains a html.
goquery.go:242
FunctionParseUrl
Parses a html document located at url.
goquery.go:247
MethodRemove
Unfinished Remove the set of matched elements from the DOM.
goquery.go:612
MethodRemoveAttr
Remove an attribute from each element in the set of matched elements.
goquery.go:617
MethodSlice
Reduce the set of matched elements to a subset specified by a range of indices.
goquery.go:623
FunctionString
String returns a string whose contents are equal to s. In that sense, it is equivalent to string(s), but may be more efficient.
exp/html/atom/atom.go:81
MethodString
String returns a string representation of the TokenType.
exp/html/token.go:37
MethodSwap
(i, j int)
exp/html/parse_test.go:123
MethodSwap
(i, j int)
exp/html/atom/gen.go:38
FunctionTestBufAPI
(t *testing.T)
exp/html/token_test.go:559
FunctionTestConvertNewlines
(t *testing.T)
exp/html/token_test.go:595
FunctionTestEntityLength
(t *testing.T)
exp/html/entity_test.go:12
FunctionTestHits
(t *testing.T)
exp/html/atom/atom_test.go:12
FunctionTestMisses
(t *testing.T)
exp/html/atom/atom_test.go:21
FunctionTestParser
(t *testing.T)
exp/html/parse_test.go:228
FunctionTestRenderer
(t *testing.T)
exp/html/render_test.go:12
FunctionTestTokenizer
(t *testing.T)
exp/html/token_test.go:445
FunctionTestUnescape
(t *testing.T)
exp/html/token_test.go:529
FunctionTestUnescapeEscape
(t *testing.T)
exp/html/token_test.go:538
MethodText
Get the combined text contents of each element in the set of matched elements, including their descendants.
goquery.go:647
FunctionafterAfterBodyIM
Section 12.2.5.4.21.
exp/html/parse.go:1759
FunctionafterAfterFramesetIM
Section 12.2.5.4.22.
exp/html/parse.go:1788
FunctionafterBodyIM
Section 12.2.5.4.18.
exp/html/parse.go:1634
FunctionafterFramesetIM
Section 12.2.5.4.20.
exp/html/parse.go:1720
FunctionafterHeadIM
Section 12.2.5.4.6.
exp/html/parse.go:616
FunctionbeforeHTMLIM
Section 12.2.5.4.2.
exp/html/parse.go:473
FunctionbeforeHeadIM
Section 12.2.5.4.3.
exp/html/parse.go:511
MethodforTag
TODO(nigeltao): forTag no longer used. Should it be deleted? forTag returns the top-most element node with the given tag.
exp/html/node.go:146
FunctioninCaptionIM
Section 12.2.5.4.11.
exp/html/parse.go:1295
FunctioninCellIM
Section 12.2.5.4.15.
exp/html/parse.go:1497
FunctioninColumnGroupIM
Section 12.2.5.4.12.
exp/html/parse.go:1341
FunctioninFramesetIM
Section 12.2.5.4.19.
exp/html/parse.go:1670
FunctioninRowIM
Section 12.2.5.4.14.
exp/html/parse.go:1446
FunctioninSelectInTableIM
Section 12.2.5.4.17.
exp/html/parse.go:1616
FunctioninTableBodyIM
Section 12.2.5.4.13.
exp/html/parse.go:1394
FunctioninitialIM
Section 12.2.5.4.1.
exp/html/parse.go:446
Functionmain
()
exp/html/atom/gen.go:59
Functionmain
()
examples/local.go:29
Functionmain
()
examples/remote.go:8
Functionmain
()
examples/modify.go:30
FunctiontextIM
Section 12.2.5.4.8.
exp/html/parse.go:1157
Methodtop
top returns the most recently pushed node, or nil if s is empty.
exp/html/node.go:106
← previous101–196 of 196, ranked by callers