package
0.0.5
Repository: https://github.com/rbnbr/go-html-utils.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
GetChildren Same as below, return slice of pointers, even though considered bad practice, to be able to directly modify substructures of a bigger tree.
GetElementNodeByTagName Returns the first node with the given tag name provided a starting node Returns nil if none found.
GetElementsInTableRowByConditionForOneOfTheElements Returns all children elements (with tag <td>) of the table row node with tag (<tr>), for which at least one children fulfills the provided condition cond.
No description provided by the author
No description provided by the author
GetNextNodeByCondition Returns the first node for which the provided condition yields true, excluding the start node.
GetNextNodesByCondition Return all nodes in the tree of startNode for which the provided condition yields true, excluding startNode.
GetNodeByCondition Returns the first node for which the provided condition yields true, including the start node.
GetNodesByCondition Return all nodes in the tree of startNode for which the provided condition yields true, including startNode.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ParseHtmlTable Parses a given html.Node which should point to a <table> ElementNode in a html tree to an HtmlTable Struct which can be used to easily look up existing indices, headers, and values.
ParseHtmlTableWithNormalizer Parses a given html.Node which should point to a <table> ElementNode in a html tree to an HtmlTable Struct which can be used to easily look up existing indices, headers, and values.
ParseSelectHTMLNode Parses the html node with tag 'select' into its different options.
WalkHtmlTree Calls f on node.

# Variables

without space.

# Structs

HtmlTable Represents an HTML table in a struct Contains only text content.