dom

package
v0.0.0-...-c28d2af Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	TagContent string
	Nodes      []*Node
	Attr       map[string]string
	Index      map[string][]*Node
	Closed     bool
}

func DocumentParser

func DocumentParser(source string) *Node

func NewNode

func NewNode(s string) *Node

func (*Node) GetContent

func (n *Node) GetContent() string

func (*Node) GetStruct

func (n *Node) GetStruct() string

func (*Node) GetTagName

func (n *Node) GetTagName() string

func (*Node) InnerContent

func (n *Node) InnerContent() string

func (*Node) Selector

func (n *Node) Selector(sel string) []*Node

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL