godom

package module
v1.0.5 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

README

goDom

a Go Dom Parser

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
	Parent     *Node
	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

func (*Node) SelectorFirst added in v1.0.4

func (n *Node) SelectorFirst(sel string) *Node

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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