Documentation
¶
Index ¶
- func EltToRenderer(elt Elt) render.Renderer
- func EmptyElt() emptyElt
- type Elt
- type TagBuilder
- func (t TagBuilder) ToHTML() (io.Reader, error)
- func (t TagBuilder) WithChild(e Elt) TagBuilder
- func (t TagBuilder) WithChildren(elts ...Elt) TagBuilder
- func (t TagBuilder) WithOpt(name string, val interface{}) TagBuilder
- func (t TagBuilder) WithOpts(opts TagOpts) TagBuilder
- func (t TagBuilder) WithText(s string) TagBuilder
- type TagOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EltToRenderer ¶
Types ¶
type TagBuilder ¶
type TagBuilder struct {
// contains filtered or unexported fields
}
func NewTag ¶
func NewTag(name string) TagBuilder
func (TagBuilder) WithChild ¶
func (t TagBuilder) WithChild(e Elt) TagBuilder
func (TagBuilder) WithChildren ¶
func (t TagBuilder) WithChildren(elts ...Elt) TagBuilder
func (TagBuilder) WithOpt ¶
func (t TagBuilder) WithOpt(name string, val interface{}) TagBuilder
func (TagBuilder) WithOpts ¶
func (t TagBuilder) WithOpts(opts TagOpts) TagBuilder
func (TagBuilder) WithText ¶
func (t TagBuilder) WithText(s string) TagBuilder
type TagOpts ¶
type TagOpts map[string]interface{}
func MergeTagOpts ¶
MergeTagOpts merges two sets of TagOpts together with the below rule: to2 overwrites to1 unless a key is in mergeKeys. in that case, the val in to1 is appended to to2 after a space
Click to show internal directories.
Click to hide internal directories.