Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( TagOpen = []byte("<ol") TagClose = []byte("</ol>") AttrReversed = []byte(" reversed") AttrStart = []byte(" start=\"") AttrType = []byte(" type=\"") )
Byte constants for HTML rendering.
Functions ¶
func Decimal ¶
Decimal Creates an ordered list with decimal numbering (1, 2, 3...) Example: ol.Decimal() Renders: <ol type="1"></ol>
func LowerAlpha ¶
LowerAlpha Creates an ordered list with lowercase letters (a, b, c...) Example: ol.LowerAlpha() Renders: <ol type="a"></ol>
func LowerRoman ¶
LowerRoman Creates an ordered list with lowercase Roman numerals (i, ii, iii...) Example: ol.LowerRoman() Renders: <ol type="i"></ol>
func New ¶
New Creates a new ordered list element with optional child nodes (typically li elements) Example: ol.New() Renders: <ol></ol>
func UpperAlpha ¶
UpperAlpha Creates an ordered list with uppercase letters (A, B, C...) Example: ol.UpperAlpha() Renders: <ol type="A"></ol>
func UpperRoman ¶
UpperRoman Creates an ordered list with uppercase Roman numerals (I, II, III...) Example: ol.UpperRoman() Renders: <ol type="I"></ol>