package
module
Version:
v0.0.0-...-a439dfa
Opens a new window with list of versions in this module.
Published: Jul 25, 2016
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
htmlutils
htmlutils contains functions to simplify working with Go language's experimental HTML5 parser
Documentation
¶
AppendAll recursively traverses the parse tree rooted under the provided
node and appends all nodes matched by the MatchFunc to dst.
FindNode recursively searches for the node matched by
MatchFunc and returns it if found.
GetAttr fetches the value of a html.Attribute for a given namespace and key.
GetData searches for all the text nodes under the provided
node and returns concatenation of text data
MatchFunc matches HTML nodes.
MatchAtom returns a MatchFunc that matches a Node with the specified Atom.
MatchAtomAttr returns a MatchFunc that matches a Node with the specified
Atom and a html.Attribute's namespace, key and value.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.