traverse

package
v0.0.0-...-3c72c70 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package traverse implements tree traversals for the x/net/html parsed HTML trees.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Depth

func Depth(root *html.Node, visitor func(*html.Node) bool)

Depth performs a depth-first traversal over a parsed HTML document. If the visitor function returns false, traversal is stopped.

Types

This section is empty.

Jump to

Keyboard shortcuts

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