Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Icon ¶
func Icon(href string) *element
Icon Creates a new link element for a site icon (favicon). Example: link.Icon("/favicon.ico") Renders: <link rel="icon" href="/favicon.ico" />
func New ¶
func New() *element
New Creates a new link element without any initial attributes. Example: link.New() Renders: <link />
func Preload ¶
Preload Creates a new link element for preloading resources to improve performance. Example: link.Preload("/font.woff2", as.Font) Renders: <link rel="preload" href="/font.woff2" as="font" />
func Stylesheet ¶
func Stylesheet(href string) *element
Stylesheet Creates a new link element for a CSS stylesheet. Example: link.Stylesheet("/styles.css") Renders: <link rel="stylesheet" href="/styles.css" />
Types ¶
Click to show internal directories.
Click to hide internal directories.