col

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package col provides constructors and methods for the HTML <col> element.

The <col> HTML element defines one or more columns in a column group represented by its parent <colgroup> element. The <col> element is only valid as a child of a <colgroup> element that has no span attribute defined.

Index

Constants

This section is empty.

Variables

View Source
var (
	TagOpen = []byte("<col")

	AttrSpan = []byte(" span=\"")
)

Byte constants for HTML rendering.

Functions

func New

func New() *element

New creates a new col element without any initial attributes. Example: col.New() Renders: <col />

func Span added in v0.3.0

func Span(span int) *element

Span creates a col element that spans the given number of columns. Example: col.Span(3) Renders: <col span="3" />

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