Documentation ¶
Index ¶
- func AttrBuilder(key string) func(string) Attribute
- func SelfClosingTagBuilder(tagName string) func(...AttrRenderer) SelfClosingTag
- func TagBuilder(tagName string) func(...AttrRenderer) Tag
- type AttrRenderer
- type AttrSlice
- type Attribute
- func Accept(accept string) Attribute
- func AccessKey(accessKey string) Attribute
- func Action(action string) Attribute
- func Alt(alt string) Attribute
- func Aria(name string, value string) Attribute
- func Attr(key, value string) Attribute
- func AutoComplete(autoComplete string) Attribute
- func AutoFocus(autoFocus string) Attribute
- func AutoSave(autoSave string) Attribute
- func Axis(axis string) Attribute
- func Charset(charset string) Attribute
- func Class(class string) Attribute
- func ColSpan(colSpan string) Attribute
- func Content(content string) Attribute
- func ContentEditable(contentEditable string) Attribute
- func ContextMenu(contextMenu string) Attribute
- func Coords(coords string) Attribute
- func CrossOrigin(crossOrigin string) Attribute
- func DataAttr(name string, value string) Attribute
- func DateTime(datetime string) Attribute
- func Default(default_ string) Attribute
- func Dir(dir string) Attribute
- func Download(download string) Attribute
- func Draggable(draggable string) Attribute
- func DropZone(dropZone string) Attribute
- func EncType(encType string) Attribute
- func For(for_ string) Attribute
- func FormAction(formAction string) Attribute
- func FormAttr(form string) Attribute
- func FormEncType(formEncType string) Attribute
- func FormMethod(formMethod string) Attribute
- func FormNoValidate(formNoValidate string) Attribute
- func FormTarget(formTarget string) Attribute
- func Headers(headers string) Attribute
- func HeadersAttr(headers string) Attribute
- func Height(height string) Attribute
- func Hidden(hidden string) Attribute
- func High(high string) Attribute
- func Href(href string) Attribute
- func HrefLang(hrefLang string) Attribute
- func HttpEquiv(httpEquiv string) Attribute
- func ID(id string) Attribute
- func Integrity(integrity string) Attribute
- func IsMap(isMap string) Attribute
- func KeyType(keytype string) Attribute
- func Kind(kind string) Attribute
- func LabelAttr(label string) Attribute
- func Lang(lang string) Attribute
- func List(list string) Attribute
- func LongDesc(longDesc string) Attribute
- func Low(low string) Attribute
- func Max(max string) Attribute
- func MaxLength(maxLength string) Attribute
- func Media(media string) Attribute
- func Method(method string) Attribute
- func Min(min string) Attribute
- func MinLength(minLength string) Attribute
- func Multiple(multiple string) Attribute
- func Name(name string) Attribute
- func OnAbort(handler string) Attribute
- func OnBlur(handler string) Attribute
- func OnChange(handler string) Attribute
- func OnClick(handler string) Attribute
- func OnError(handler string) Attribute
- func OnFocus(handler string) Attribute
- func OnKeyDown(handler string) Attribute
- func OnKeyPress(handler string) Attribute
- func OnKeyUp(handler string) Attribute
- func OnLoad(handler string) Attribute
- func OnMouseDown(handler string) Attribute
- func OnMouseOut(handler string) Attribute
- func OnMouseOver(handler string) Attribute
- func OnMouseUp(handler string) Attribute
- func OnReset(handler string) Attribute
- func OnResize(handler string) Attribute
- func OnScroll(handler string) Attribute
- func OnSelect(handler string) Attribute
- func OnSubmit(handler string) Attribute
- func OnUnload(handler string) Attribute
- func Optimum(optimum string) Attribute
- func Pattern(pattern string) Attribute
- func Ping(ping string) Attribute
- func Placeholder(placeholder string) Attribute
- func ReferrerPolicy(referrerPolicy string) Attribute
- func Rel(rel string) Attribute
- func Rev(rev string) Attribute
- func Role(role string) Attribute
- func RowSpan(rowSpan string) Attribute
- func Scheme(scheme string) Attribute
- func Scope(scope string) Attribute
- func Shape(shape string) Attribute
- func Size(size string) Attribute
- func Sizes(sizes string) Attribute
- func SpellCheck(spellCheck string) Attribute
- func Src(src string) Attribute
- func SrcLang(srclang string) Attribute
- func SrcSet(srcSet string) Attribute
- func Step(step string) Attribute
- func StyleAttr(style string) Attribute
- func TabIndex(tabIndex string) Attribute
- func Target(target string) Attribute
- func TitleAttr(title string) Attribute
- func Translate(translate string) Attribute
- func Type(type_ string) Attribute
- func UseMap(useMap string) Attribute
- func Value(value string) Attribute
- func Width(width string) Attribute
- type Classes
- type HTML5Doctype
- type IfElseAttr
- type IfElseTag
- type NoValAttribute
- type SelfClosingTag
- func Area(attrs ...AttrRenderer) SelfClosingTag
- func Base(attrs ...AttrRenderer) SelfClosingTag
- func Br(attrs ...AttrRenderer) SelfClosingTag
- func Col(attrs ...AttrRenderer) SelfClosingTag
- func Embed(attrs ...AttrRenderer) SelfClosingTag
- func Hr(attrs ...AttrRenderer) SelfClosingTag
- func Img(attrs ...AttrRenderer) SelfClosingTag
- func Input(attrs ...AttrRenderer) SelfClosingTag
- func Link(attrs ...AttrRenderer) SelfClosingTag
- func Meta(attrs ...AttrRenderer) SelfClosingTag
- func Param(attrs ...AttrRenderer) SelfClosingTag
- func Source(attrs ...AttrRenderer) SelfClosingTag
- func Track(attrs ...AttrRenderer) SelfClosingTag
- func Wbr(attrs ...AttrRenderer) SelfClosingTag
- type Tag
- func A(attrs ...AttrRenderer) Tag
- func Abbr(attrs ...AttrRenderer) Tag
- func Address(attrs ...AttrRenderer) Tag
- func Article(attrs ...AttrRenderer) Tag
- func Aside(attrs ...AttrRenderer) Tag
- func Audio(attrs ...AttrRenderer) Tag
- func B(attrs ...AttrRenderer) Tag
- func Bdi(attrs ...AttrRenderer) Tag
- func Bdo(attrs ...AttrRenderer) Tag
- func Blockquote(attrs ...AttrRenderer) Tag
- func Body(attrs ...AttrRenderer) Tag
- func Button(attrs ...AttrRenderer) Tag
- func Canvas(attrs ...AttrRenderer) Tag
- func Caption(attrs ...AttrRenderer) Tag
- func Cite(attrs ...AttrRenderer) Tag
- func Code(attrs ...AttrRenderer) Tag
- func Colgroup(attrs ...AttrRenderer) Tag
- func Data(attrs ...AttrRenderer) Tag
- func Datalist(attrs ...AttrRenderer) Tag
- func Dd(attrs ...AttrRenderer) Tag
- func Del(attrs ...AttrRenderer) Tag
- func Details(attrs ...AttrRenderer) Tag
- func Dfn(attrs ...AttrRenderer) Tag
- func Dialog(attrs ...AttrRenderer) Tag
- func Div(attrs ...AttrRenderer) Tag
- func Dl(attrs ...AttrRenderer) Tag
- func Dt(attrs ...AttrRenderer) Tag
- func Em(attrs ...AttrRenderer) Tag
- func Fieldset(attrs ...AttrRenderer) Tag
- func Figcaption(attrs ...AttrRenderer) Tag
- func Figure(attrs ...AttrRenderer) Tag
- func Footer(attrs ...AttrRenderer) Tag
- func Form(attrs ...AttrRenderer) Tag
- func H1(attrs ...AttrRenderer) Tag
- func H2(attrs ...AttrRenderer) Tag
- func H3(attrs ...AttrRenderer) Tag
- func H4(attrs ...AttrRenderer) Tag
- func H5(attrs ...AttrRenderer) Tag
- func H6(attrs ...AttrRenderer) Tag
- func HTML(attrs ...AttrRenderer) Tag
- func Head(attrs ...AttrRenderer) Tag
- func Header(attrs ...AttrRenderer) Tag
- func I(attrs ...AttrRenderer) Tag
- func Iframe(attrs ...AttrRenderer) Tag
- func Ins(attrs ...AttrRenderer) Tag
- func Kbd(attrs ...AttrRenderer) Tag
- func Label(attrs ...AttrRenderer) Tag
- func Legend(attrs ...AttrRenderer) Tag
- func Li(attrs ...AttrRenderer) Tag
- func Main(attrs ...AttrRenderer) Tag
- func Map(attrs ...AttrRenderer) Tag
- func Mark(attrs ...AttrRenderer) Tag
- func Meter(attrs ...AttrRenderer) Tag
- func Nav(attrs ...AttrRenderer) Tag
- func NewTag(tagName string) Tag
- func Noscript(attrs ...AttrRenderer) Tag
- func Object(attrs ...AttrRenderer) Tag
- func Ol(attrs ...AttrRenderer) Tag
- func Optgroup(attrs ...AttrRenderer) Tag
- func Option(attrs ...AttrRenderer) Tag
- func Output(attrs ...AttrRenderer) Tag
- func P(attrs ...AttrRenderer) Tag
- func Picture(attrs ...AttrRenderer) Tag
- func Pre(attrs ...AttrRenderer) Tag
- func Progress(attrs ...AttrRenderer) Tag
- func Q(attrs ...AttrRenderer) Tag
- func Rp(attrs ...AttrRenderer) Tag
- func Rt(attrs ...AttrRenderer) Tag
- func Ruby(attrs ...AttrRenderer) Tag
- func S(attrs ...AttrRenderer) Tag
- func Samp(attrs ...AttrRenderer) Tag
- func Script(attrs ...AttrRenderer) Tag
- func Section(attrs ...AttrRenderer) Tag
- func Select(attrs ...AttrRenderer) Tag
- func Slot(attrs ...AttrRenderer) Tag
- func Small(attrs ...AttrRenderer) Tag
- func Span(attrs ...AttrRenderer) Tag
- func Strong(attrs ...AttrRenderer) Tag
- func Style(attrs ...AttrRenderer) Tag
- func Sub(attrs ...AttrRenderer) Tag
- func Summary(attrs ...AttrRenderer) Tag
- func Sup(attrs ...AttrRenderer) Tag
- func Table(attrs ...AttrRenderer) Tag
- func Tbody(attrs ...AttrRenderer) Tag
- func Td(attrs ...AttrRenderer) Tag
- func Template(attrs ...AttrRenderer) Tag
- func Textarea(attrs ...AttrRenderer) Tag
- func Tfoot(attrs ...AttrRenderer) Tag
- func Th(attrs ...AttrRenderer) Tag
- func Thead(attrs ...AttrRenderer) Tag
- func Time(attrs ...AttrRenderer) Tag
- func Title(attrs ...AttrRenderer) Tag
- func Tr(attrs ...AttrRenderer) Tag
- func U(attrs ...AttrRenderer) Tag
- func Ul(attrs ...AttrRenderer) Tag
- func Var(attrs ...AttrRenderer) Tag
- func Video(attrs ...AttrRenderer) Tag
- type TagRenderer
- type TagSlice
- type Text
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttrBuilder ¶
func SelfClosingTagBuilder ¶
func SelfClosingTagBuilder(tagName string) func(...AttrRenderer) SelfClosingTag
func TagBuilder ¶
func TagBuilder(tagName string) func(...AttrRenderer) Tag
Types ¶
type AttrRenderer ¶
type AttrSlice ¶ added in v0.1.0
type AttrSlice []AttrRenderer
type Attribute ¶
type Attribute struct {
// contains filtered or unexported fields
}
func AutoComplete ¶
func ContentEditable ¶
func ContextMenu ¶
func CrossOrigin ¶
func FormAction ¶
func FormEncType ¶
func FormMethod ¶
func FormNoValidate ¶
func FormTarget ¶
func HeadersAttr ¶
func OnKeyPress ¶
func OnMouseDown ¶
func OnMouseOut ¶
func OnMouseOver ¶
func Placeholder ¶
func ReferrerPolicy ¶
func SpellCheck ¶
type HTML5Doctype ¶
type HTML5Doctype struct {
// contains filtered or unexported fields
}
func NewHTML5Doctype ¶
func NewHTML5Doctype(cs ...TagRenderer) HTML5Doctype
func (HTML5Doctype) X ¶
func (t HTML5Doctype) X(children ...TagRenderer) HTML5Doctype
type IfElseAttr ¶ added in v0.3.0
type IfElseAttr struct {
// contains filtered or unexported fields
}
func IfAttr ¶ added in v0.3.0
func IfAttr(cond bool, then AttrRenderer) IfElseAttr
func (IfElseAttr) AttrRender ¶ added in v0.3.0
func (t IfElseAttr) AttrRender(w io.Writer) error
func (IfElseAttr) Else ¶ added in v0.3.0
func (ie IfElseAttr) Else(els AttrRenderer) IfElseAttr
type IfElseTag ¶ added in v0.3.0
type IfElseTag struct {
// contains filtered or unexported fields
}
func If ¶ added in v0.3.0
func If(cond bool, then TagRenderer) IfElseTag
func (IfElseTag) Else ¶ added in v0.3.0
func (ie IfElseTag) Else(els TagRenderer) IfElseTag
type NoValAttribute ¶ added in v0.2.0
type NoValAttribute struct {
// contains filtered or unexported fields
}
func Checked ¶
func Checked() NoValAttribute
func Disabled ¶
func Disabled() NoValAttribute
func NoValAttr ¶ added in v0.2.0
func NoValAttr(key string) NoValAttribute
func NoValidate ¶
func NoValidate() NoValAttribute
func ReadOnly ¶
func ReadOnly() NoValAttribute
func Required ¶
func Required() NoValAttribute
func (NoValAttribute) AttrRender ¶ added in v0.2.0
func (a NoValAttribute) AttrRender(w io.Writer) error
type SelfClosingTag ¶
type SelfClosingTag struct {
// contains filtered or unexported fields
}
func Area ¶
func Area(attrs ...AttrRenderer) SelfClosingTag
func Base ¶
func Base(attrs ...AttrRenderer) SelfClosingTag
func Br ¶
func Br(attrs ...AttrRenderer) SelfClosingTag
func Col ¶
func Col(attrs ...AttrRenderer) SelfClosingTag
func Embed ¶
func Embed(attrs ...AttrRenderer) SelfClosingTag
func Hr ¶
func Hr(attrs ...AttrRenderer) SelfClosingTag
func Img ¶
func Img(attrs ...AttrRenderer) SelfClosingTag
func Input ¶
func Input(attrs ...AttrRenderer) SelfClosingTag
func Link ¶
func Link(attrs ...AttrRenderer) SelfClosingTag
func Meta ¶
func Meta(attrs ...AttrRenderer) SelfClosingTag
func Param ¶
func Param(attrs ...AttrRenderer) SelfClosingTag
func Source ¶
func Source(attrs ...AttrRenderer) SelfClosingTag
func Track ¶
func Track(attrs ...AttrRenderer) SelfClosingTag
func Wbr ¶
func Wbr(attrs ...AttrRenderer) SelfClosingTag
type Tag ¶
type Tag struct {
// contains filtered or unexported fields
}
func A ¶
func A(attrs ...AttrRenderer) Tag
func Abbr ¶
func Abbr(attrs ...AttrRenderer) Tag
func Address ¶
func Address(attrs ...AttrRenderer) Tag
func Article ¶
func Article(attrs ...AttrRenderer) Tag
func Aside ¶
func Aside(attrs ...AttrRenderer) Tag
func Audio ¶
func Audio(attrs ...AttrRenderer) Tag
func B ¶
func B(attrs ...AttrRenderer) Tag
func Bdi ¶
func Bdi(attrs ...AttrRenderer) Tag
func Bdo ¶
func Bdo(attrs ...AttrRenderer) Tag
func Blockquote ¶
func Blockquote(attrs ...AttrRenderer) Tag
func Body ¶
func Body(attrs ...AttrRenderer) Tag
func Button ¶
func Button(attrs ...AttrRenderer) Tag
func Canvas ¶
func Canvas(attrs ...AttrRenderer) Tag
func Caption ¶
func Caption(attrs ...AttrRenderer) Tag
func Cite ¶
func Cite(attrs ...AttrRenderer) Tag
func Code ¶
func Code(attrs ...AttrRenderer) Tag
func Colgroup ¶
func Colgroup(attrs ...AttrRenderer) Tag
func Data ¶
func Data(attrs ...AttrRenderer) Tag
func Datalist ¶
func Datalist(attrs ...AttrRenderer) Tag
func Dd ¶
func Dd(attrs ...AttrRenderer) Tag
func Del ¶
func Del(attrs ...AttrRenderer) Tag
func Details ¶
func Details(attrs ...AttrRenderer) Tag
func Dfn ¶
func Dfn(attrs ...AttrRenderer) Tag
func Dialog ¶
func Dialog(attrs ...AttrRenderer) Tag
func Div ¶
func Div(attrs ...AttrRenderer) Tag
func Dl ¶
func Dl(attrs ...AttrRenderer) Tag
func Dt ¶
func Dt(attrs ...AttrRenderer) Tag
func Em ¶
func Em(attrs ...AttrRenderer) Tag
func Fieldset ¶
func Fieldset(attrs ...AttrRenderer) Tag
func Figcaption ¶
func Figcaption(attrs ...AttrRenderer) Tag
func Figure ¶
func Figure(attrs ...AttrRenderer) Tag
func Footer ¶
func Footer(attrs ...AttrRenderer) Tag
func Form ¶
func Form(attrs ...AttrRenderer) Tag
func H1 ¶
func H1(attrs ...AttrRenderer) Tag
func H2 ¶
func H2(attrs ...AttrRenderer) Tag
func H3 ¶
func H3(attrs ...AttrRenderer) Tag
func H4 ¶
func H4(attrs ...AttrRenderer) Tag
func H5 ¶
func H5(attrs ...AttrRenderer) Tag
func H6 ¶
func H6(attrs ...AttrRenderer) Tag
func HTML ¶
func HTML(attrs ...AttrRenderer) Tag
func Head ¶
func Head(attrs ...AttrRenderer) Tag
func Header ¶
func Header(attrs ...AttrRenderer) Tag
func I ¶
func I(attrs ...AttrRenderer) Tag
func Iframe ¶
func Iframe(attrs ...AttrRenderer) Tag
func Ins ¶
func Ins(attrs ...AttrRenderer) Tag
func Kbd ¶
func Kbd(attrs ...AttrRenderer) Tag
func Label ¶
func Label(attrs ...AttrRenderer) Tag
func Legend ¶
func Legend(attrs ...AttrRenderer) Tag
func Li ¶
func Li(attrs ...AttrRenderer) Tag
func Main ¶
func Main(attrs ...AttrRenderer) Tag
func Map ¶
func Map(attrs ...AttrRenderer) Tag
func Mark ¶
func Mark(attrs ...AttrRenderer) Tag
func Meter ¶
func Meter(attrs ...AttrRenderer) Tag
func Nav ¶
func Nav(attrs ...AttrRenderer) Tag
func Noscript ¶
func Noscript(attrs ...AttrRenderer) Tag
func Object ¶
func Object(attrs ...AttrRenderer) Tag
func Ol ¶
func Ol(attrs ...AttrRenderer) Tag
func Optgroup ¶
func Optgroup(attrs ...AttrRenderer) Tag
func Option ¶
func Option(attrs ...AttrRenderer) Tag
func Output ¶
func Output(attrs ...AttrRenderer) Tag
func P ¶
func P(attrs ...AttrRenderer) Tag
func Picture ¶
func Picture(attrs ...AttrRenderer) Tag
func Pre ¶
func Pre(attrs ...AttrRenderer) Tag
func Progress ¶
func Progress(attrs ...AttrRenderer) Tag
func Q ¶
func Q(attrs ...AttrRenderer) Tag
func Rp ¶
func Rp(attrs ...AttrRenderer) Tag
func Rt ¶
func Rt(attrs ...AttrRenderer) Tag
func Ruby ¶
func Ruby(attrs ...AttrRenderer) Tag
func S ¶
func S(attrs ...AttrRenderer) Tag
func Samp ¶
func Samp(attrs ...AttrRenderer) Tag
func Script ¶
func Script(attrs ...AttrRenderer) Tag
func Section ¶
func Section(attrs ...AttrRenderer) Tag
func Select ¶
func Select(attrs ...AttrRenderer) Tag
func Slot ¶
func Slot(attrs ...AttrRenderer) Tag
func Small ¶
func Small(attrs ...AttrRenderer) Tag
func Span ¶
func Span(attrs ...AttrRenderer) Tag
func Strong ¶
func Strong(attrs ...AttrRenderer) Tag
func Style ¶
func Style(attrs ...AttrRenderer) Tag
func Sub ¶
func Sub(attrs ...AttrRenderer) Tag
func Summary ¶
func Summary(attrs ...AttrRenderer) Tag
func Sup ¶
func Sup(attrs ...AttrRenderer) Tag
func Table ¶
func Table(attrs ...AttrRenderer) Tag
func Tbody ¶
func Tbody(attrs ...AttrRenderer) Tag
func Td ¶
func Td(attrs ...AttrRenderer) Tag
func Template ¶
func Template(attrs ...AttrRenderer) Tag
func Textarea ¶
func Textarea(attrs ...AttrRenderer) Tag
func Tfoot ¶
func Tfoot(attrs ...AttrRenderer) Tag
func Th ¶
func Th(attrs ...AttrRenderer) Tag
func Thead ¶
func Thead(attrs ...AttrRenderer) Tag
func Time ¶
func Time(attrs ...AttrRenderer) Tag
func Title ¶
func Title(attrs ...AttrRenderer) Tag
func Tr ¶
func Tr(attrs ...AttrRenderer) Tag
func U ¶
func U(attrs ...AttrRenderer) Tag
func Ul ¶
func Ul(attrs ...AttrRenderer) Tag
func Var ¶
func Var(attrs ...AttrRenderer) Tag
func Video ¶
func Video(attrs ...AttrRenderer) Tag
func (Tag) Attrs ¶ added in v0.3.2
func (t Tag) Attrs(attrs ...AttrRenderer) Tag
func (Tag) X ¶
func (t Tag) X(children ...TagRenderer) Tag
type TagRenderer ¶
type TagSlice ¶ added in v0.1.0
type TagSlice []TagRenderer
Click to show internal directories.
Click to hide internal directories.