Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crufter/goquery
/ functions
Functions
196 in github.com/crufter/goquery
⨍
Functions
196
◇
Types & classes
22
↓ 1 callers
Function
fprint
(w io.Writer, n *Node, lev int)
goquery.go:46
↓ 1 callers
Function
getLevStr
(lev int)
goquery.go:38
↓ 1 callers
Function
hash
The hash function must be the same as the one used in gen.go
exp/html/atom/atom.go:21
↓ 1 callers
Function
id
(c *selector, str string)
goquery.go:166
↓ 1 callers
Function
identifier
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 callers
Method
inForeignContent
Section 12.2.5.
exp/html/parse.go:1898
↓ 1 callers
Function
inSelectIM
Section 12.2.5.4.16.
exp/html/parse.go:1546
↓ 1 callers
Function
mapFromAttr
(a []html.Attribute)
goquery.go:82
↓ 1 callers
Function
name
(c *selector, str string)
goquery.go:140
↓ 1 callers
Function
parseDoctype
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 callers
Function
parseForeignContent
Section 12.2.5.5.
exp/html/parse.go:1824
↓ 1 callers
Function
parseSingleSel
(str string)
goquery.go:191
↓ 1 callers
Method
read
read reads the next token from the tokenizer.
exp/html/parse.go:374
↓ 1 callers
Method
readComment
readComment reads the next comment token starting with "<!--". The opening "<!--" has already been consumed.
exp/html/token.go:285
↓ 1 callers
Method
readEndTag
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 callers
Method
readMarkupDeclaration
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 callers
Function
readParseTest
readParseTest reads a single test case from r.
exp/html/parse_test.go:26
↓ 1 callers
Method
readRawOrRCDATA
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 callers
Method
readStartTag
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 callers
Method
readTagAttrKey
readTagAttrKey sets z.pendingAttr[0] to the "k" in "<div k=v>". Precondition: z.err == nil.
exp/html/token.go:502
↓ 1 callers
Method
readTagAttrVal
readTagAttrVal sets z.pendingAttr[1] to the "v" in "<div k=v>".
exp/html/token.go:523
↓ 1 callers
Function
recur
(n *Node, action func(*Node))
goquery.go:66
↓ 1 callers
Function
recurStop
(lev int, n *Node, action func(*Node, int) bool)
goquery.go:73
↓ 1 callers
Function
recurUp
(ns Nodes, f func(e *Node))
goquery.go:367
↓ 1 callers
Function
recurUpBool
(ns Nodes, f func(e *Node) bool)
goquery.go:376
↓ 1 callers
Function
removeAttr
(ns Nodes, key string)
goquery.go:328
↓ 1 callers
Function
render1
(w writer, n *Node)
exp/html/render.go:68
↓ 1 callers
Function
reparentChildren
reparentChildren reparents all of src's child nodes to dst.
exp/html/node.go:71
↓ 1 callers
Function
testParseCase
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 callers
Function
text
(buf *bytes.Buffer, n *Node)
goquery.go:634
Method
AddClass
Here comes the JQuery-like API. Unfinished Adds the specified class(es) to each of the set of matched elements.
goquery.go:391
Method
Attr
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
Function
BenchmarkHighLevelTokenizer
(b *testing.B)
exp/html/token_test.go:683
Function
BenchmarkLookup
(b *testing.B)
exp/html/atom/atom_test.go:57
Function
BenchmarkLowLevelTokenizer
(b *testing.B)
exp/html/token_test.go:682
Function
BenchmarkParser
(b *testing.B)
exp/html/parse_test.go:392
Function
BenchmarkRawLevelTokenizer
(b *testing.B)
exp/html/token_test.go:681
Method
Each
(f func(index int, element *Node))
goquery.go:411
Method
Eq
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
Method
First
Reduce the set of matched elements to those that match the selector or pass the function's test.
goquery.go:445
Method
Has
Reduce the set of matched elements to those that have a descendant that matches the selector or DOM element.
goquery.go:485
Method
Is
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
Method
Last
Reduce the set of matched elements to the final one in the set.
goquery.go:471
Method
Len
()
exp/html/parse_test.go:112
Method
Len
()
exp/html/atom/gen.go:36
Method
Length
Returns the number of elements in the GoQuery object.
goquery.go:480
Method
Less
(i, j int)
exp/html/parse_test.go:116
Method
Less
(i, j int)
exp/html/atom/gen.go:37
Method
Not
Remove elements from the set of matched elements.
goquery.go:526
Method
OuterHtml
Not in jQuery. Get the HTML contents of the first element in the set of matched elements, including the current element.
goquery.go:600
Method
OuterHtmlAll
Not in jQuery. Get the HTML contents of all elements in the set of matched elements, including the current elements.
goquery.go:606
Method
Parent
Get the parent of each element in the current set of matched elements, optionally filtered by a selector.
goquery.go:536
Method
Parents
Get the ancestors of each element in the current set of matched elements, optionally filtered by a selector.
goquery.go:556
Method
ParentsUntil
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
Function
ParseString
Parses a string which contains a html.
goquery.go:242
Function
ParseUrl
Parses a html document located at url.
goquery.go:247
Method
Remove
Unfinished Remove the set of matched elements from the DOM.
goquery.go:612
Method
RemoveAttr
Remove an attribute from each element in the set of matched elements.
goquery.go:617
Method
Slice
Reduce the set of matched elements to a subset specified by a range of indices.
goquery.go:623
Function
String
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
Method
String
String returns a string representation of the TokenType.
exp/html/token.go:37
Method
Swap
(i, j int)
exp/html/parse_test.go:123
Method
Swap
(i, j int)
exp/html/atom/gen.go:38
Function
TestBufAPI
(t *testing.T)
exp/html/token_test.go:559
Function
TestConvertNewlines
(t *testing.T)
exp/html/token_test.go:595
Function
TestEntityLength
(t *testing.T)
exp/html/entity_test.go:12
Function
TestHits
(t *testing.T)
exp/html/atom/atom_test.go:12
Function
TestMisses
(t *testing.T)
exp/html/atom/atom_test.go:21
Function
TestParser
(t *testing.T)
exp/html/parse_test.go:228
Function
TestRenderer
(t *testing.T)
exp/html/render_test.go:12
Function
TestTokenizer
(t *testing.T)
exp/html/token_test.go:445
Function
TestUnescape
(t *testing.T)
exp/html/token_test.go:529
Function
TestUnescapeEscape
(t *testing.T)
exp/html/token_test.go:538
Method
Text
Get the combined text contents of each element in the set of matched elements, including their descendants.
goquery.go:647
Function
afterAfterBodyIM
Section 12.2.5.4.21.
exp/html/parse.go:1759
Function
afterAfterFramesetIM
Section 12.2.5.4.22.
exp/html/parse.go:1788
Function
afterBodyIM
Section 12.2.5.4.18.
exp/html/parse.go:1634
Function
afterFramesetIM
Section 12.2.5.4.20.
exp/html/parse.go:1720
Function
afterHeadIM
Section 12.2.5.4.6.
exp/html/parse.go:616
Function
beforeHTMLIM
Section 12.2.5.4.2.
exp/html/parse.go:473
Function
beforeHeadIM
Section 12.2.5.4.3.
exp/html/parse.go:511
Method
forTag
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
Function
inCaptionIM
Section 12.2.5.4.11.
exp/html/parse.go:1295
Function
inCellIM
Section 12.2.5.4.15.
exp/html/parse.go:1497
Function
inColumnGroupIM
Section 12.2.5.4.12.
exp/html/parse.go:1341
Function
inFramesetIM
Section 12.2.5.4.19.
exp/html/parse.go:1670
Function
inRowIM
Section 12.2.5.4.14.
exp/html/parse.go:1446
Function
inSelectInTableIM
Section 12.2.5.4.17.
exp/html/parse.go:1616
Function
inTableBodyIM
Section 12.2.5.4.13.
exp/html/parse.go:1394
Function
initialIM
Section 12.2.5.4.1.
exp/html/parse.go:446
Function
main
()
exp/html/atom/gen.go:59
Function
main
()
examples/local.go:29
Function
main
()
examples/remote.go:8
Function
main
()
examples/modify.go:30
Function
textIM
Section 12.2.5.4.8.
exp/html/parse.go:1157
Method
top
top returns the most recently pushed node, or nil if s is empty.
exp/html/node.go:106
← previous
101–196 of 196, ranked by callers