el

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: MIT Imports: 3 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func A added in v0.3.0

func A(href string, children ...g.Node) g.NodeFunc

func Abbr added in v0.8.0

func Abbr(text string, children ...g.Node) g.NodeFunc

func Address added in v0.6.0

func Address(children ...g.Node) g.NodeFunc

func Area added in v0.8.0

func Area(children ...g.Node) g.NodeFunc

func Article added in v0.6.0

func Article(children ...g.Node) g.NodeFunc

func Aside added in v0.6.0

func Aside(children ...g.Node) g.NodeFunc

func Audio added in v0.8.0

func Audio(children ...g.Node) g.NodeFunc

func B added in v0.3.0

func B(text string, children ...g.Node) g.NodeFunc

func Base added in v0.5.0

func Base(children ...g.Node) g.NodeFunc

func BlockQuote added in v0.8.0

func BlockQuote(children ...g.Node) g.NodeFunc

func Body

func Body(children ...g.Node) g.NodeFunc

func Br added in v0.8.0

func Br(children ...g.Node) g.NodeFunc

func Button added in v0.5.0

func Button(children ...g.Node) g.NodeFunc

func Canvas added in v0.8.0

func Canvas(children ...g.Node) g.NodeFunc

func Caption added in v0.8.0

func Caption(text string, children ...g.Node) g.NodeFunc

func Cite added in v0.8.0

func Cite(children ...g.Node) g.NodeFunc

func Code added in v0.8.0

func Code(children ...g.Node) g.NodeFunc

func Col added in v0.8.0

func Col(children ...g.Node) g.NodeFunc

func ColGroup added in v0.8.0

func ColGroup(children ...g.Node) g.NodeFunc

func Data added in v0.8.0

func Data(children ...g.Node) g.NodeFunc

func DataList added in v0.8.0

func DataList(children ...g.Node) g.NodeFunc

func Dd added in v0.8.0

func Dd(text string, children ...g.Node) g.NodeFunc

func Del added in v0.8.0

func Del(text string, children ...g.Node) g.NodeFunc

func Details added in v0.8.0

func Details(children ...g.Node) g.NodeFunc

func Dfn added in v0.8.0

func Dfn(text string, children ...g.Node) g.NodeFunc

func Dialog added in v0.8.0

func Dialog(children ...g.Node) g.NodeFunc

func Div added in v0.3.0

func Div(children ...g.Node) g.NodeFunc

func Dl added in v0.8.0

func Dl(children ...g.Node) g.NodeFunc

func Document

func Document(children ...g.Node) g.NodeFunc

Document returns an special kind of Node that prefixes its children with the string "<!doctype html>".

func Dt added in v0.8.0

func Dt(text string, children ...g.Node) g.NodeFunc

func Em added in v0.3.0

func Em(text string, children ...g.Node) g.NodeFunc

func Embed added in v0.8.0

func Embed(children ...g.Node) g.NodeFunc

func FieldSet added in v0.8.0

func FieldSet(children ...g.Node) g.NodeFunc

func FigCaption added in v0.8.0

func FigCaption(text string, children ...g.Node) g.NodeFunc

func Figure added in v0.8.0

func Figure(children ...g.Node) g.NodeFunc
func Footer(children ...g.Node) g.NodeFunc

func Form added in v0.5.0

func Form(action, method string, children ...g.Node) g.NodeFunc

Form returns an element with name "form", the given action and method attributes, and the given children.

func H1 added in v0.3.0

func H1(text string, children ...g.Node) g.NodeFunc

H1 returns an element with name "h1", the given text content, and the given children.

func H2 added in v0.3.0

func H2(text string, children ...g.Node) g.NodeFunc

H2 returns an element with name "h2", the given text content, and the given children.

func H3 added in v0.3.0

func H3(text string, children ...g.Node) g.NodeFunc

H3 returns an element with name "h3", the given text content, and the given children.

func H4 added in v0.3.0

func H4(text string, children ...g.Node) g.NodeFunc

H4 returns an element with name "h4", the given text content, and the given children.

func H5 added in v0.3.0

func H5(text string, children ...g.Node) g.NodeFunc

H5 returns an element with name "h5", the given text content, and the given children.

func H6 added in v0.3.0

func H6(text string, children ...g.Node) g.NodeFunc

H6 returns an element with name "h6", the given text content, and the given children.

func HGroup added in v0.6.0

func HGroup(children ...g.Node) g.NodeFunc

func HTML

func HTML(children ...g.Node) g.NodeFunc
func Head(children ...g.Node) g.NodeFunc
func Header(children ...g.Node) g.NodeFunc

func Hr added in v0.8.0

func Hr(children ...g.Node) g.NodeFunc

func I added in v0.3.0

func I(text string, children ...g.Node) g.NodeFunc

func IFrame added in v0.8.0

func IFrame(children ...g.Node) g.NodeFunc

func Img added in v0.3.0

func Img(src, alt string, children ...g.Node) g.NodeFunc

func Input added in v0.5.0

func Input(typ, name string, children ...g.Node) g.NodeFunc

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 Ins added in v0.8.0

func Ins(text string, children ...g.Node) g.NodeFunc

func Kbd added in v0.8.0

func Kbd(text string, children ...g.Node) g.NodeFunc

func Label added in v0.5.0

func Label(forr string, children ...g.Node) g.NodeFunc

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 Legend added in v0.8.0

func Legend(children ...g.Node) g.NodeFunc

func Li added in v0.3.0

func Li(children ...g.Node) g.NodeFunc
func Link(children ...g.Node) g.NodeFunc

func Main added in v0.6.0

func Main(children ...g.Node) g.NodeFunc

func Mark added in v0.8.0

func Mark(text string, children ...g.Node) g.NodeFunc
func Menu(children ...g.Node) g.NodeFunc

func Meta added in v0.3.0

func Meta(children ...g.Node) g.NodeFunc

func Meter added in v0.8.0

func Meter(children ...g.Node) g.NodeFunc
func Nav(children ...g.Node) g.NodeFunc

func NoScript added in v0.8.0

func NoScript(children ...g.Node) g.NodeFunc

func Object added in v0.8.0

func Object(children ...g.Node) g.NodeFunc

func Ol added in v0.3.0

func Ol(children ...g.Node) g.NodeFunc

func OptGroup added in v0.8.0

func OptGroup(children ...g.Node) g.NodeFunc

func Option added in v0.5.0

func Option(text, value string, children ...g.Node) g.NodeFunc

Option returns an element with name "option", the given text content and value attribute, and the given children.

func P added in v0.3.0

func P(children ...g.Node) g.NodeFunc

func Param added in v0.8.0

func Param(children ...g.Node) g.NodeFunc

func Picture added in v0.8.0

func Picture(children ...g.Node) g.NodeFunc

func Pre added in v0.8.0

func Pre(children ...g.Node) g.NodeFunc

func Progress added in v0.5.0

func Progress(value, max float64, children ...g.Node) g.NodeFunc

Progress returns an element with name "progress", the given value and max attributes, and the given children.

func Q added in v0.8.0

func Q(text string, children ...g.Node) g.NodeFunc

func S added in v0.8.0

func S(text string, children ...g.Node) g.NodeFunc

func Samp added in v0.8.0

func Samp(text string, children ...g.Node) g.NodeFunc

func Script added in v0.8.0

func Script(children ...g.Node) g.NodeFunc

func Section added in v0.6.0

func Section(children ...g.Node) g.NodeFunc

func Select added in v0.5.0

func Select(name string, children ...g.Node) g.NodeFunc

Select returns an element with name "select", the given name attribute, and the given children.

func Small added in v0.8.0

func Small(text string, children ...g.Node) g.NodeFunc

func Source added in v0.8.0

func Source(children ...g.Node) g.NodeFunc

func Span added in v0.3.0

func Span(children ...g.Node) g.NodeFunc

func Strong added in v0.3.0

func Strong(text string, children ...g.Node) g.NodeFunc

func Style added in v0.3.0

func Style(children ...g.Node) g.NodeFunc

func Sub added in v0.8.0

func Sub(text string, children ...g.Node) g.NodeFunc

func Summary added in v0.8.0

func Summary(children ...g.Node) g.NodeFunc

func Sup added in v0.8.0

func Sup(text string, children ...g.Node) g.NodeFunc

func TBody added in v0.8.0

func TBody(children ...g.Node) g.NodeFunc

func TFoot added in v0.8.0

func TFoot(children ...g.Node) g.NodeFunc

func THead added in v0.8.0

func THead(children ...g.Node) g.NodeFunc

func Table added in v0.8.0

func Table(children ...g.Node) g.NodeFunc

func Td added in v0.8.0

func Td(children ...g.Node) g.NodeFunc

func Textarea added in v0.5.0

func Textarea(name string, children ...g.Node) g.NodeFunc

Textarea returns an element with name "textarea", the given name attribute, and the given children.

func Th added in v0.8.0

func Th(children ...g.Node) g.NodeFunc

func Time added in v0.8.0

func Time(text string, children ...g.Node) g.NodeFunc

func Title

func Title(title string, children ...g.Node) g.NodeFunc

func Tr added in v0.8.0

func Tr(children ...g.Node) g.NodeFunc

func U added in v0.8.0

func U(text string, children ...g.Node) g.NodeFunc

func Ul added in v0.3.0

func Ul(children ...g.Node) g.NodeFunc

func Var added in v0.8.0

func Var(text string, children ...g.Node) g.NodeFunc

func Wbr added in v0.8.0

func Wbr(children ...g.Node) g.NodeFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL