Documentation ¶
Overview ¶
Package el provides shortcuts and helpers to common HTML elements. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element for a list of elements.
Index ¶
- func A(href string, children ...g.Node) g.NodeFunc
- func Abbr(text string, children ...g.Node) g.NodeFunc
- func Address(children ...g.Node) g.NodeFunc
- func Area(children ...g.Node) g.NodeFunc
- func Article(children ...g.Node) g.NodeFunc
- func Aside(children ...g.Node) g.NodeFunc
- func Audio(children ...g.Node) g.NodeFunc
- func B(text string, children ...g.Node) g.NodeFunc
- func Base(children ...g.Node) g.NodeFunc
- func BlockQuote(children ...g.Node) g.NodeFunc
- func Body(children ...g.Node) g.NodeFunc
- func Br(children ...g.Node) g.NodeFunc
- func Button(children ...g.Node) g.NodeFunc
- func Canvas(children ...g.Node) g.NodeFunc
- func Caption(text string, children ...g.Node) g.NodeFunc
- func Cite(children ...g.Node) g.NodeFunc
- func Code(children ...g.Node) g.NodeFunc
- func Col(children ...g.Node) g.NodeFunc
- func ColGroup(children ...g.Node) g.NodeFunc
- func Data(children ...g.Node) g.NodeFunc
- func DataList(children ...g.Node) g.NodeFunc
- func Dd(text string, children ...g.Node) g.NodeFunc
- func Del(text string, children ...g.Node) g.NodeFunc
- func Details(children ...g.Node) g.NodeFunc
- func Dfn(text string, children ...g.Node) g.NodeFunc
- func Dialog(children ...g.Node) g.NodeFunc
- func Div(children ...g.Node) g.NodeFunc
- func Dl(children ...g.Node) g.NodeFunc
- func Document(children ...g.Node) g.NodeFunc
- func Dt(text string, children ...g.Node) g.NodeFunc
- func Em(text string, children ...g.Node) g.NodeFunc
- func Embed(children ...g.Node) g.NodeFunc
- func FieldSet(children ...g.Node) g.NodeFunc
- func FigCaption(text string, children ...g.Node) g.NodeFunc
- func Figure(children ...g.Node) g.NodeFunc
- func Footer(children ...g.Node) g.NodeFunc
- func Form(action, method string, children ...g.Node) g.NodeFunc
- func H1(text string, children ...g.Node) g.NodeFunc
- func H2(text string, children ...g.Node) g.NodeFunc
- func H3(text string, children ...g.Node) g.NodeFunc
- func H4(text string, children ...g.Node) g.NodeFunc
- func H5(text string, children ...g.Node) g.NodeFunc
- func H6(text string, children ...g.Node) g.NodeFunc
- func HGroup(children ...g.Node) g.NodeFunc
- func HTML(children ...g.Node) g.NodeFunc
- func Head(children ...g.Node) g.NodeFunc
- func Header(children ...g.Node) g.NodeFunc
- func Hr(children ...g.Node) g.NodeFunc
- func I(text string, children ...g.Node) g.NodeFunc
- func IFrame(children ...g.Node) g.NodeFunc
- func Img(src, alt string, children ...g.Node) g.NodeFunc
- func Input(typ, name string, children ...g.Node) g.NodeFunc
- func Ins(text string, children ...g.Node) g.NodeFunc
- func Kbd(text string, children ...g.Node) g.NodeFunc
- func Label(forr string, children ...g.Node) g.NodeFunc
- func Legend(children ...g.Node) g.NodeFunc
- func Li(children ...g.Node) g.NodeFunc
- func Link(children ...g.Node) g.NodeFunc
- func Main(children ...g.Node) g.NodeFunc
- func Mark(text string, children ...g.Node) g.NodeFunc
- func Menu(children ...g.Node) g.NodeFunc
- func Meta(children ...g.Node) g.NodeFunc
- func Meter(children ...g.Node) g.NodeFunc
- func Nav(children ...g.Node) g.NodeFunc
- func NoScript(children ...g.Node) g.NodeFunc
- func Object(children ...g.Node) g.NodeFunc
- func Ol(children ...g.Node) g.NodeFunc
- func OptGroup(children ...g.Node) g.NodeFunc
- func Option(text, value string, children ...g.Node) g.NodeFunc
- func P(children ...g.Node) g.NodeFunc
- func Param(children ...g.Node) g.NodeFunc
- func Picture(children ...g.Node) g.NodeFunc
- func Pre(children ...g.Node) g.NodeFunc
- func Progress(value, max float64, children ...g.Node) g.NodeFunc
- func Q(text string, children ...g.Node) g.NodeFunc
- func S(text string, children ...g.Node) g.NodeFunc
- func Samp(text string, children ...g.Node) g.NodeFunc
- func Script(children ...g.Node) g.NodeFunc
- func Section(children ...g.Node) g.NodeFunc
- func Select(name string, children ...g.Node) g.NodeFunc
- func Small(text string, children ...g.Node) g.NodeFunc
- func Source(children ...g.Node) g.NodeFunc
- func Span(children ...g.Node) g.NodeFunc
- func Strong(text string, children ...g.Node) g.NodeFunc
- func Style(children ...g.Node) g.NodeFunc
- func Sub(text string, children ...g.Node) g.NodeFunc
- func Summary(children ...g.Node) g.NodeFunc
- func Sup(text string, children ...g.Node) g.NodeFunc
- func TBody(children ...g.Node) g.NodeFunc
- func TFoot(children ...g.Node) g.NodeFunc
- func THead(children ...g.Node) g.NodeFunc
- func Table(children ...g.Node) g.NodeFunc
- func Td(children ...g.Node) g.NodeFunc
- func Textarea(name string, children ...g.Node) g.NodeFunc
- func Th(children ...g.Node) g.NodeFunc
- func Time(text string, children ...g.Node) g.NodeFunc
- func Title(title string, children ...g.Node) g.NodeFunc
- func Tr(children ...g.Node) g.NodeFunc
- func U(text string, children ...g.Node) g.NodeFunc
- func Ul(children ...g.Node) g.NodeFunc
- func Var(text string, children ...g.Node) g.NodeFunc
- func Wbr(children ...g.Node) g.NodeFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Document ¶
Document returns an special kind of Node that prefixes its children with the string "<!doctype html>".
func Form ¶ added in v0.5.0
Form returns an element with name "form", the given action and method attributes, and the given children.
func H1 ¶ added in v0.3.0
H1 returns an element with name "h1", the given text content, and the given children.
func H2 ¶ added in v0.3.0
H2 returns an element with name "h2", the given text content, and the given children.
func H3 ¶ added in v0.3.0
H3 returns an element with name "h3", the given text content, and the given children.
func H4 ¶ added in v0.3.0
H4 returns an element with name "h4", the given text content, and the given children.
func H5 ¶ added in v0.3.0
H5 returns an element with name "h5", the given text content, and the given children.
func H6 ¶ added in v0.3.0
H6 returns an element with name "h6", the given text content, and the given children.
func Input ¶ added in v0.5.0
Input returns an element with name "input", the given type and name attributes, and the given children. Note that "type" is a keyword in Go, so the parameter is called typ.
func Label ¶ added in v0.5.0
Label returns an element with name "label", the given for attribute, and the given children. Note that "for" is a keyword in Go, so the parameter is called forr.
func Option ¶ added in v0.5.0
Option returns an element with name "option", the given text content and value attribute, and the given children.
func Progress ¶ added in v0.5.0
Progress returns an element with name "progress", the given value and max attributes, and the given children.
func Select ¶ added in v0.5.0
Select returns an element with name "select", the given name attribute, and the given children.
Types ¶
This section is empty.