htmlutil

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAttr

func GetAttr(node *html.Node, key string) (string, bool)

func ResolveReferences

func ResolveReferences(input string, base *url.URL) (string, error)

Resolve hrefs and srcs in input.

func SetAttr

func SetAttr(node *html.Node, key string, value string)

func Walk

func Walk(node *html.Node, walkFunc func(node *html.Node) error) error

Walk walks a node by performing a depth-first search.

Types

This section is empty.

Jump to

Keyboard shortcuts

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