Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New Creates a new menu element with optional child nodes. Example: menu.New() Renders: <menu></menu>
func RawText ¶
func RawText(str string) *element
RawText Creates a new menu element with raw text content. Example: menu.RawText("Menu items") Renders: <menu>Menu items</menu>
func RawTextf ¶
RawTextf Creates a new menu element with formatted raw text content as unescaped HTML. Example: menu.RawTextf("Menu <em>%d</em>", 1) Renders: <menu>Menu <em>1</em></menu>
func Static ¶
func Static(str string) *element
Static Creates a new menu element with static text content. Example: menu.Static("Hello World") Renders: <menu>Hello World</menu>
Types ¶
Click to show internal directories.
Click to hide internal directories.