pred

package
v0.15.8 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: BSD-3-Clause Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Predicate

type Predicate func(*html.Node) bool

func AnyElement added in v0.9.0

func AnyElement() Predicate

func AnyText added in v0.9.0

func AnyText() Predicate

func Attr

func Attr(a, val string) Predicate

func AttrCond added in v0.5.0

func AttrCond(a string, p func(string) bool) Predicate

func AttrWord

func AttrWord(a, word string) Predicate

func AttrWordCond added in v0.5.0

func AttrWordCond(a string, p func(string) bool) Predicate

func Class

func Class(class string) Predicate

func ClassCond added in v0.5.0

func ClassCond(p func(string) bool) Predicate

func Element

func Element(element atom.Atom, pp ...Predicate) Predicate

func ID

func ID(id string) Predicate

func IDCond added in v0.5.0

func IDCond(p func(string) bool) Predicate

func InnerText added in v0.5.0

func InnerText(s string) Predicate

func InnerTextCond added in v0.5.0

func InnerTextCond(p func(string) bool) Predicate

func IsText added in v0.8.0

func IsText() Predicate

func Text added in v0.8.0

func Text(s string, pp ...Predicate) Predicate

func TextCond added in v0.8.0

func TextCond(p func(string) bool) Predicate

func True added in v0.8.0

func True() Predicate

Jump to

Keyboard shortcuts

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