Documentation
¶
Index ¶
Constants ¶
View Source
const ( BackgroundAttribute = "background" HrefAttribute = "href" DataSrcAttribute = "data-src" SrcAttribute = "src" DataSrcSetAttribute = "data-srcset" SrcSetAttribute = "srcset" )
View Source
const ( ATag = "a" BodyTag = "body" ImgTag = "img" LinkTag = "link" ScriptTag = "script" StyleTag = "style" )
Variables ¶
View Source
var Nodes = map[string]Node{ ATag: { Attributes: []string{HrefAttribute}, }, BodyTag: { Attributes: []string{BackgroundAttribute}, }, ImgTag: { Attributes: []string{SrcAttribute, DataSrcAttribute, SrcSetAttribute, DataSrcSetAttribute}, // contains filtered or unexported fields }, LinkTag: { Attributes: []string{HrefAttribute}, }, ScriptTag: { Attributes: []string{SrcAttribute}, }, StyleTag: { // contains filtered or unexported fields }, }
Nodes describes the HTML tags and their attributes that can contain URL.
View Source
var SrcSetAttributes = map[string]struct{}{ DataSrcSetAttribute: {}, SrcSetAttribute: {}, }
SrcSetAttributes contains the attributes that contain srcset values.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.