match_node

package module
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: MIT Imports: 3 Imported by: 11

README

match-node

Golang HTML node selector using custom matching functions

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttrVal added in v0.1.5

func AttrVal(node *html.Node, attribute string) string

func Match

func Match(doc *html.Node, delegate Matcher) *html.Node

func Matches added in v0.1.6

func Matches(doc *html.Node, delegate Matcher, limit int) []*html.Node

func TextContent added in v0.1.15

func TextContent(node *html.Node) string

Types

type Matcher added in v0.1.6

type Matcher interface {
	Match(node *html.Node) bool
}

func NewAtom added in v0.1.11

func NewAtom(at atom.Atom) Matcher

func NewEtc added in v0.1.6

func NewEtc(elementType atom.Atom, class string, classEquals bool) Matcher

func NewId added in v0.1.10

func NewId(elementType atom.Atom, id string) Matcher

func NewSelector added in v0.1.12

func NewSelector(query string) Matcher

Jump to

Keyboard shortcuts

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