Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CSS ¶
func CSS(css string) *element
CSS Creates a style element with CSS type explicitly set. Example: style.CSS("body { margin: 0; padding: 0; }") Renders: <style type="text/css">body { margin: 0; padding: 0; }</style>
func New ¶
New Creates a new style element without any initial attributes. Example: style.New() Renders: <style></style>
func RawText ¶
func RawText(content string) *element
RawText Creates a new style element with raw CSS content as unescaped HTML. Example: style.RawText("body { margin: 0; }") Renders: <style>body { margin: 0; }</style>
func RawTextf ¶
RawTextf Creates a new style element with formatted raw text content as unescaped HTML using text.RawTextf. Example: style.RawTextf("%s { margin: %d; }", "body", 0) Renders: <style>body { margin: 0; }</style>
func Static ¶
func Static(content string) *element
Static Creates a new style element with static text content. Example: style.Static("Hello World") Renders: <style>Hello World</style>