htmlparsing

package
v5.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsyncCSSTag

func AsyncCSSTag(cm CSSTagData) *html.Node

func AsyncJSTag

func AsyncJSTag(jm JSTagData) *html.Node

func Attributes

func Attributes(e *html.Node) map[string]html.Attribute

func AttributesList

func AttributesList(attrs map[string]html.Attribute) []html.Attribute

func FindNodeByTag

func FindNodeByTag(tag string, node *html.Node) *html.Node

func FindNodesByClassname

func FindNodesByClassname(classname string, node *html.Node) []*html.Node

func FindNodesByTag

func FindNodesByTag(tag string, node *html.Node) []*html.Node

func GetKeys

func GetKeys(node *html.Node) sets.StringSet

func InlineCSSTag

func InlineCSSTag(contents string) *html.Node

func InlineJSTag

func InlineJSTag(contents string) *html.Node

func PreloadTag

func PreloadTag(as, url string) *html.Node

func SwapNodes

func SwapNodes(original, new *html.Node)

func SyncCSSTag

func SyncCSSTag(cm CSSTagData) *html.Node

func SyncJSTag

func SyncJSTag(jm JSTagData) *html.Node

Types

type CSSTagData

type CSSTagData struct {
	URL        string
	Attributes []html.Attribute
	Media      string
}

type JSTagData

type JSTagData struct {
	URL        string
	Attributes []html.Attribute
}

Jump to

Keyboard shortcuts

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