html

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Attr

func Attr(n *html.Node, name string) string

Attr returns given attribute value (or empty string if not found).

func FindAll

func FindAll(n *html.Node, query string) []*html.Node

FindAll returns all nodes satisfying query inside given node.

func First

func First(n *html.Node, query string) *html.Node

First returns first node satisfying query inside given node.

func Parse

func Parse(r io.Reader) (*html.Node, error)

Parse returns the parse tree for the HTML from the given Reader.

func Text

func Text(n *html.Node) string

Text returns text content of node.

Types

This section is empty.

Jump to

Keyboard shortcuts

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