el

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 License: MIT Imports: 2 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 B added in v0.3.0

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

func Body

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

Body returns an element with name "body" and the given children.

func Div added in v0.3.0

func Div(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 Em added in v0.3.0

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

func H1 added in v0.3.0

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

func H2 added in v0.3.0

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

func H3 added in v0.3.0

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

func H4 added in v0.3.0

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

func H5 added in v0.3.0

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

func H6 added in v0.3.0

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

func HTML

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

HTML returns an element with name "html" and the given children.

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

Head returns an element with name "head" and the given children.

func I added in v0.3.0

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

func Img added in v0.3.0

func Img(src, alt string, 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 Meta added in v0.3.0

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

func Ol added in v0.3.0

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

func P added in v0.3.0

func P(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 Title

func Title(title string) g.NodeFunc

Title returns an element with name "title" and a single Text child.

func Ul added in v0.3.0

func Ul(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