find

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Whether cache use in Query and QueryAll
	// when using in multi thread maybe better set a false
	CacheEnabled = false
)

Functions

func All

func All(node *html.Node, m Matcher) []*html.Node

All

func ByClass

func ByClass(n *html.Node, className string) []*html.Node

ByClass

func ById

func ById(n *html.Node, id string) *html.Node

ById

func ByName

func ByName(n *html.Node, name string) []*html.Node

ByName

func ByTag

func ByTag(n *html.Node, tag string) []*html.Node

ByTag

func First

func First(node *html.Node, m Matcher) *html.Node

First

func Query

func Query(n *html.Node, selector string) *html.Node

Query

func QueryAll

func QueryAll(n *html.Node, selector string) []*html.Node

QueryAll

Types

type Matcher

type Matcher func(*html.Node) bool

Matcher

Jump to

Keyboard shortcuts

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