Documentation
¶
Index ¶
- type BodyNode
- func A() BodyNode
- func Br() BodyNode
- func Code(text string) BodyNode
- func Div(children ...BodyNode) BodyNode
- func Em(text string) BodyNode
- func Form(action string, m method.Type) BodyNode
- func H1(text string) BodyNode
- func H2(text string) BodyNode
- func H3(text string) BodyNode
- func H4(text string) BodyNode
- func H5(text string) BodyNode
- func H6(text string) BodyNode
- func Hr() BodyNode
- func Input(inputType input.Type) BodyNode
- func Label(text string) BodyNode
- func P(text string) BodyNode
- func Script(src string) BodyNode
- func Strong(text string) BodyNode
- func Text(text string) BodyNode
- func (bn BodyNode) Accept(types string) BodyNode
- func (bn BodyNode) Alt(text string) BodyNode
- func (bn BodyNode) Attributes(attrs map[string]string) BodyNode
- func (bn BodyNode) AutoComplete(enabled bool) BodyNode
- func (bn BodyNode) Autofocus() BodyNode
- func (bn BodyNode) Checked(checked bool) BodyNode
- func (bn BodyNode) Children(children ...BodyNode) BodyNode
- func (bn BodyNode) Class(classes ...string) BodyNode
- func (bn BodyNode) Disabled(disabled bool) BodyNode
- func (bn BodyNode) For(href string) BodyNode
- func (bn BodyNode) Href(href string) BodyNode
- func (bn BodyNode) Max(value string) BodyNode
- func (bn BodyNode) Min(value string) BodyNode
- func (bn BodyNode) Multiple(multiple bool) BodyNode
- func (bn BodyNode) Name(text string) BodyNode
- func (bn BodyNode) Pattern(text string) BodyNode
- func (bn BodyNode) Placeholder(placeholder string) BodyNode
- func (bn BodyNode) Readonly(readonly bool) BodyNode
- func (bn BodyNode) Required(required bool) BodyNode
- func (bn BodyNode) String() string
- func (bn BodyNode) Value(value string) BodyNode
- type HTMLBodyNode
- type HTMLHeadNode
- type HTMLNode
- type HeadNode
- func Base(href string, target string) HeadNode
- func Link(href string) HeadNode
- func MetaCharset(charset string) HeadNode
- func MetaHTTPEquiv(header meta.HTTPEquiv, value string) HeadNode
- func MetaInfo(name meta.Info, value string) HeadNode
- func MetaViewport(attributes ...viewport.Attribute) HeadNode
- func ScriptExternal(href string) HeadNode
- func ScriptInline(body string) HeadNode
- func Style(rules string) HeadNode
- func Title(text string) HeadNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BodyNode ¶ added in v1.0.1
type BodyNode struct {
// contains filtered or unexported fields
}
func (BodyNode) Attributes ¶ added in v1.0.1
func (BodyNode) AutoComplete ¶ added in v1.0.1
func (BodyNode) Placeholder ¶ added in v1.0.1
type HTMLBodyNode ¶ added in v1.0.1
type HTMLBodyNode struct {
// contains filtered or unexported fields
}
func (HTMLBodyNode) String ¶ added in v1.0.1
func (b HTMLBodyNode) String() string
type HTMLHeadNode ¶ added in v1.0.1
type HTMLHeadNode struct {
// contains filtered or unexported fields
}
func (HTMLHeadNode) String ¶ added in v1.0.1
func (h HTMLHeadNode) String() string
type HTMLNode ¶ added in v1.0.1
type HTMLNode struct {
// contains filtered or unexported fields
}
func HTML ¶
func HTML(head HTMLHeadNode, body HTMLBodyNode) HTMLNode
HTML returns an <html> document
type HeadNode ¶ added in v1.0.1
type HeadNode struct {
// contains filtered or unexported fields
}
func MetaCharset ¶
MetaCharset returns a <meta> tag with the specified text
func MetaViewport ¶
func ScriptExternal ¶
func ScriptInline ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.