ul

package
v0.3.0-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TagOpen  = []byte("<ul")
	TagClose = []byte("</ul>")

	AttrType = []byte(" type=\"")
)

Byte constants for HTML rendering.

Functions

func Items added in v0.3.0

func Items(items ...*li.Element) *element

Items Creates an unordered list from li elements, enforcing correct nesting at compile time. Example: ul.Items(li.Text("one"), li.Text("two")) Renders: <ul><li>one</li><li>two</li></ul>

func New

func New(nodes ...node.Node) *element

New Creates a new unordered list element with optional child nodes (typically li elements). Example: ul.New() Renders: <ul></ul>

Types

type Element

type Element = element

Element is an exported alias for the private element type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL