htmlx

package module
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: BSD-3-Clause Imports: 5 Imported by: 1

README

htmlx

Build Status Coverage Status Go Report Card

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Finder

type Finder struct {
	*html.Node
}

func FinderFromData

func FinderFromData(r io.Reader) (Finder, error)

func FinderFromNode

func FinderFromNode(h *html.Node) Finder

func FinderFromString

func FinderFromString(s string) (Finder, error)

func (Finder) Attr added in v0.3.0

func (f Finder) Attr() attr.List

func (Finder) Find

func (f Finder) Find(pred pred.Predicate) (r Finder)

Find performs universal depth-first find. Includes current node in the search.

func (Finder) FindPrevSibling added in v0.4.0

func (f Finder) FindPrevSibling(pred pred.Predicate) (r Finder)

FindPrevSibling performs flat find among node's previous (left) siblings. No recursion. Omits current node, starts from a first such sibling.

func (Finder) FindSibling

func (f Finder) FindSibling(pred pred.Predicate) (r Finder)

FindSibling performs flat find among node's next (right) siblings. No recursion. Omits current node, starts from a first such sibling.

func (Finder) FirstChild

func (f Finder) FirstChild() Finder

func (Finder) IsEmpty

func (f Finder) IsEmpty() bool

func (Finder) LastChild added in v0.4.0

func (f Finder) LastChild() Finder

func (Finder) NextSibling

func (f Finder) NextSibling() Finder

func (Finder) Parent added in v0.4.0

func (f Finder) Parent() Finder

func (Finder) PrevSibling added in v0.4.0

func (f Finder) PrevSibling() Finder

func (Finder) String

func (f Finder) String() string

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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