Documentation ¶
Index ¶
- func AnalysisTag(node *html.Node, items *[]ContentItem)
- func FindNode(node *html.Node, nodeType html.NodeType, tagName string) (*html.Node, error)
- func FindNodes(node *html.Node, nodeType html.NodeType, tagName string, nodes *[]*html.Node)
- func Href(node *html.Node) string
- func InitByContent(htmlContent string) (*html.Node, error)
- func InitByFile(filePath string) (*html.Node, error)
- func InitByUrl(url string) (*html.Node, error)
- func Src(node *html.Node) string
- func TransformHTMLToItems(parentNode *html.Node, items *[]ContentItem)
- func TransformItemsToHtml(items []ContentItem) string
- type ContentItem
- type Html
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TransformHTMLToItems ¶
func TransformHTMLToItems(parentNode *html.Node, items *[]ContentItem)
将 html 源码转换为项目数组
Types ¶
type ContentItem ¶
Click to show internal directories.
Click to hide internal directories.