Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TagOpen = []byte("<colgroup") TagClose = []byte("</colgroup>") AttrSpan = []byte(" span=\"") )
Byte constants for HTML rendering.
Functions ¶
func New ¶
New Creates a new colgroup element with the given child nodes (typically <col> elements). Example: colgroup.New(col.New(), col.Span(2)) Renders: <colgroup><col /><col span="2" /></colgroup>
func Span ¶ added in v0.3.0
func Span(span int) *element
Span Creates a colgroup that spans the given number of columns without requiring individual col children. Use this shorthand when all columns in the group share the same styling. Example: colgroup.Span(3) Renders: <colgroup span="3"></colgroup>
Types ¶
Click to show internal directories.
Click to hide internal directories.