Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( TagOpen = []byte("<strong") TagClose = []byte("</strong>") )
Byte constants for HTML rendering.
Functions ¶
func New ¶
New Creates a new strong element with optional child nodes. Example: strong.New() Renders: <strong></strong>
func RawText ¶
func RawText(content string) *element
RawText Creates a new strong element with raw text content. Uses text.RawText which is not HTML-escaped. Example: strong.RawText("Do <em>not</em> proceed") Renders: <strong>Do <em>not</em> proceed</strong>
func RawTextf ¶
RawTextf Creates a new strong element with formatted raw text content. Uses text.RawTextf which is not HTML-escaped. Example: strong.RawTextf("<em>%s</em>: action required", level) Renders: <strong><em>Warning</em>: action required</strong>
func Static ¶
func Static(content string) *element
Static Creates a new strong element with static text content. Uses text.Static which is not HTML-escaped and is JIT-optimisable. Example: strong.Static("Important") Renders: <strong>Important</strong>