html

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package html provides common HTML elements and attributes. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element for a list of elements. See https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes for a list of attributes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func A

func A(children ...g.Node) g.Node

func Abbr

func Abbr(children ...g.Node) g.Node

func Accept

func Accept(v string) g.Node

func Action

func Action(v string) g.Node

func Address

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

func Alt

func Alt(v string) g.Node

func Area

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

func Aria

func Aria(name, v string) g.Node

func Article

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

func As

func As(v string) g.Node

func Aside

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

func Async

func Async() g.Node

func Audio

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

func AutoComplete

func AutoComplete(v string) g.Node

func AutoFocus

func AutoFocus() g.Node

func AutoPlay

func AutoPlay() g.Node

func B

func B(children ...g.Node) g.Node

func Base

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

func BlockQuote

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

func Body

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

func Br

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

func Button

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

func Canvas

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

func Caption

func Caption(children ...g.Node) g.Node

func Charset

func Charset(v string) g.Node

func Checked

func Checked() g.Node

func Cite

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

func Class

func Class(v string) g.Node

func Code

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

func Col

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

func ColGroup

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

func ColSpan

func ColSpan(v string) g.Node

func Cols

func Cols(v string) g.Node

func Content

func Content(v string) g.Node

func Controls

func Controls() g.Node

func DataAttr

func DataAttr(name, v string) g.Node

func DataEl

func DataEl(children ...g.Node) g.Node

func DataList

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

func Dd

func Dd(children ...g.Node) g.Node

func Defer

func Defer() g.Node

func Del

func Del(children ...g.Node) g.Node

func Details

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

func Dfn

func Dfn(children ...g.Node) g.Node

func Dialog

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

func Disabled

func Disabled() g.Node

func Div

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

func Dl

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

func Doctype

func Doctype(sibling g.Node) g.Node

Doctype returns a special kind of Node that prefixes its sibling with the string "<!doctype html>".

func Dt

func Dt(children ...g.Node) g.Node

func Em

func Em(children ...g.Node) g.Node

func Embed

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

func EncType

func EncType(v string) g.Node

func FieldSet

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

func FigCaption

func FigCaption(children ...g.Node) g.Node

func Figure

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

func For

func For(v string) g.Node

func Foreach

func Foreach[T any](s []T, cb func(T) g.Node) g.Node

Foreach renders a slice of anything to a single Node.

func ForeachI

func ForeachI[T any](s []T, cb func(string, T) g.Node) g.Node

Foreach renders a slice of anything to a single Node.

func FormAttr

func FormAttr(v string) g.Node

func FormEl

func FormEl(children ...g.Node) g.Node

func H1

func H1(children ...g.Node) g.Node

func H2

func H2(children ...g.Node) g.Node

func H3

func H3(children ...g.Node) g.Node

func H4

func H4(children ...g.Node) g.Node

func H5

func H5(children ...g.Node) g.Node

func H6

func H6(children ...g.Node) g.Node

func HGroup

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

func HTML

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

func Height

func Height(v string) g.Node

func Hr

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

func Href

func Href(v string) g.Node

func I

func I(children ...g.Node) g.Node

func ID

func ID(v string) g.Node

func IFrame

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

func Img

func Img(children ...g.Node) g.Node

func Input

func Input(children ...g.Node) g.Node

func Ins

func Ins(children ...g.Node) g.Node

func Kbd

func Kbd(children ...g.Node) g.Node

func Label

func Label(children ...g.Node) g.Node

func Lang

func Lang(v string) g.Node

func Legend

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

func Li

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

func Loading

func Loading(v string) g.Node

func Loop

func Loop() g.Node

func LoopTimes

func LoopTimes(times int, cb func(i int) g.Node) g.Node

LoopTimes renders a callback function n times.

func Main

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

func Mark

func Mark(children ...g.Node) g.Node

func Max

func Max(v string) g.Node

func MaxLength

func MaxLength(v string) g.Node
func Menu(children ...g.Node) g.Node

func Meta

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

func Meter

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

func Method

func Method(v string) g.Node

func Min

func Min(v string) g.Node

func MinLength

func MinLength(v string) g.Node

func Multiple

func Multiple() g.Node

func Muted

func Muted() g.Node

func Name

func Name(v string) g.Node
func Nav(children ...g.Node) g.Node

func NoScript

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

func Object

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

func Ol

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

func OptGroup

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

func Option

func Option(children ...g.Node) g.Node

func P

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

func Param

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

func Pattern

func Pattern(v string) g.Node

func Picture

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

func Placeholder

func Placeholder(v string) g.Node

func PlaysInline

func PlaysInline() g.Node

func Poster

func Poster(v string) g.Node

func Pre

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

func Preload

func Preload(v string) g.Node

func Progress

func Progress(children ...g.Node) g.Node

func Q

func Q(children ...g.Node) g.Node

func Raw

func Raw(t string) g.Node

Raw creates a text DOM Node that just Renders the unescaped string t.

func Rawf

func Rawf(format string, a ...interface{}) g.Node

Rawf creates a text DOM Node that just Renders the interpolated and unescaped string format.

func ReadOnly

func ReadOnly() g.Node

func Rel

func Rel(v string) g.Node

func Required

func Required() g.Node

func Role

func Role(v string) g.Node

func RowSpan

func RowSpan(v string) g.Node

func Rows

func Rows(v string) g.Node

func S

func S(children ...g.Node) g.Node

func SVG

func SVG(children ...g.Node) g.Node

func Samp

func Samp(children ...g.Node) g.Node

func Script

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

func Section

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

func Select

func Select(children ...g.Node) g.Node

func Selected

func Selected() g.Node

func Slot

func Slot(v string) g.Node

func Small

func Small(children ...g.Node) g.Node

func Source

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

func Span

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

func Src

func Src(v string) g.Node

func SrcSet

func SrcSet(v string) g.Node

func Step

func Step(v string) g.Node

func Strong

func Strong(children ...g.Node) g.Node

func StyleAttr

func StyleAttr(v string) g.Node

func StyleEl

func StyleEl(children ...g.Node) g.Node

func Sub

func Sub(children ...g.Node) g.Node

func Summary

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

func Sup

func Sup(children ...g.Node) g.Node

func TBody

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

func TFoot

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

func THead

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

func TabIndex

func TabIndex(v string) g.Node

func Table

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

func Target

func Target(v string) g.Node

func Td

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

func Text

func Text(t string) g.Node

Text creates a text DOM Node that Renders the escaped string t.

func Textarea

func Textarea(children ...g.Node) g.Node

func Textf

func Textf(format string, a ...interface{}) g.Node

Textf creates a text DOM Node that Renders the interpolated and escaped string format.

func Th

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

func Time

func Time(children ...g.Node) g.Node

func TitleAttr

func TitleAttr(v string) g.Node

func TitleEl

func TitleEl(children ...g.Node) g.Node

func Tr

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

func Type

func Type(v string) g.Node

func U

func U(children ...g.Node) g.Node

func Ul

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

func Value

func Value(v string) g.Node

func Var

func Var(children ...g.Node) g.Node

func Video

func Video(children ...g.Node) g.Node

func Wbr

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

func Width

func Width(v string) g.Node

Types

This section is empty.

Jump to

Keyboard shortcuts

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