Documentation ¶
Index ¶
- Variables
- func Walk(nodetypes []NodeType, e js.Value, fn func(Node))
- type Document
- func (d Document) Body() js.Value
- func (d Document) GetElementById(id string) js.Value
- func (d Document) Head() js.Value
- func (d Document) MarshalJS() js.Value
- func (d Document) QuerySelector(query string) js.Value
- func (d Document) QuerySelectorAll(query string) []js.Value
- func (d Document) Walk(nodeTypes []NodeType, fn func(Node))
- type Node
- func (d Node) Call(key string, args ...any) js.Value
- func (d Node) Children() []Node
- func (d Node) FirstChild() Node
- func (d Node) Get(key string) js.Value
- func (d Node) LastChild() Node
- func (d Node) NextSibling() Node
- func (d Node) NodeName() string
- func (d Node) NodeType() NodeType
- func (d Node) Parent() Node
- func (d Node) PreviousSibling() Node
- func (d Node) Set(key string, value any)
- func (d Node) Walk(nodeTypes []NodeType, fn func(Node))
- type NodeType
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Node ¶ added in v2.6.7
func (Node) FirstChild ¶ added in v2.6.7
func (Node) NextSibling ¶ added in v2.6.7
func (Node) PreviousSibling ¶ added in v2.6.7
Click to show internal directories.
Click to hide internal directories.