Documentation
¶
Overview ¶
Package htmlgo provides a fluent HTML builder with escaping by default.
Index ¶
- type Element
- func A(children ...Node) *Element
- func Article(children ...Node) *Element
- func Body(children ...Node) *Element
- func Br(children ...Node) *Element
- func Button(children ...Node) *Element
- func Div(children ...Node) *Element
- func Footer(children ...Node) *Element
- func Form(children ...Node) *Element
- func HTML(children ...Node) *Element
- func HTML5(children ...Node) *Element
- func Head(children ...Node) *Element
- func Header(children ...Node) *Element
- func Hr(children ...Node) *Element
- func Img(children ...Node) *Element
- func Input(children ...Node) *Element
- func Label(children ...Node) *Element
- func Li(children ...Node) *Element
- func Link(children ...Node) *Element
- func Main(children ...Node) *Element
- func Meta(children ...Node) *Element
- func Nav(children ...Node) *Element
- func Ol(children ...Node) *Element
- func P(children ...Node) *Element
- func Script(children ...Node) *Element
- func Section(children ...Node) *Element
- func Span(children ...Node) *Element
- func Style(children ...Node) *Element
- func Table(children ...Node) *Element
- func Tag(name string, children ...Node) *Element
- func Tbody(children ...Node) *Element
- func Td(children ...Node) *Element
- func Textarea(children ...Node) *Element
- func Tfoot(children ...Node) *Element
- func Th(children ...Node) *Element
- func Thead(children ...Node) *Element
- func Title(children ...Node) *Element
- func Tr(children ...Node) *Element
- func Ul(children ...Node) *Element
- func (e *Element) AddClass(names ...string) *Element
- func (e *Element) After(nodes ...Node) *Element
- func (e *Element) Alt(value string) *Element
- func (e *Element) Append(nodes ...Node) *Element
- func (e *Element) Attr(key, value string) *Element
- func (e *Element) Before(nodes ...Node) *Element
- func (e *Element) Data(key, value string) *Element
- func (e *Element) Href(value string) *Element
- func (e *Element) ID(value string) *Element
- func (e *Element) Prepend(nodes ...Node) *Element
- func (e *Element) Rel(value string) *Element
- func (e *Element) RemoveAttr(key string) *Element
- func (e *Element) RemoveClass(names ...string) *Element
- func (e *Element) Src(value string) *Element
- func (e *Element) String() string
- func (e *Element) Style(declarations ...string) *Element
- func (e *Element) TabIndex(value int) *Element
- func (e *Element) Text(value string) *Element
- func (e *Element) Void() *Element
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Element ¶
type Element struct {
// contains filtered or unexported fields
}
Element represents an HTML element with chainable helpers.
func (*Element) RemoveAttr ¶
RemoveAttr removes all occurrences of an attribute.
func (*Element) RemoveClass ¶
RemoveClass removes one or more CSS classes.
Click to show internal directories.
Click to hide internal directories.