ol

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decimal

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

Decimal Creates an ordered list with decimal numbering (1, 2, 3...) Example: ol.Decimal() Renders: <ol type="1"></ol>

func LowerAlpha

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

LowerAlpha Creates an ordered list with lowercase letters (a, b, c...) Example: ol.LowerAlpha() Renders: <ol type="a"></ol>

func LowerRoman

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

LowerRoman Creates an ordered list with lowercase Roman numerals (i, ii, iii...) Example: ol.LowerRoman() Renders: <ol type="i"></ol>

func New

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

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

func UpperAlpha

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

UpperAlpha Creates an ordered list with uppercase letters (A, B, C...) Example: ol.UpperAlpha() Renders: <ol type="A"></ol>

func UpperRoman

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

UpperRoman Creates an ordered list with uppercase Roman numerals (I, II, III...) Example: ol.UpperRoman() Renders: <ol type="I"></ol>

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