Documentation ¶
Index ¶
- func Render(writer io.Writer, nodes ...*Node) error
- type Attribute
- type AttributeFunc
- type ElementBuilder
- func (b *ElementBuilder) Build(ctx context.Context) *Node
- func (b *ElementBuilder) WithAttribute(key, value string) *ElementBuilder
- func (b *ElementBuilder) WithAttributeFunc(fnc AttributeFunc) *ElementBuilder
- func (b *ElementBuilder) WithChild(child *Node) *ElementBuilder
- func (b *ElementBuilder) WithChildFunc(fnc NodeFunc) *ElementBuilder
- func (b *ElementBuilder) WithChildren(children ...*Node) *ElementBuilder
- type Node
- type NodeFunc
- type NodeType
- type Renderer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ElementBuilder ¶
type ElementBuilder struct {
// contains filtered or unexported fields
}
func NewElementBuilder ¶
func NewElementBuilder(name string) *ElementBuilder
func (*ElementBuilder) WithAttribute ¶
func (b *ElementBuilder) WithAttribute(key, value string) *ElementBuilder
func (*ElementBuilder) WithAttributeFunc ¶
func (b *ElementBuilder) WithAttributeFunc(fnc AttributeFunc) *ElementBuilder
func (*ElementBuilder) WithChild ¶
func (b *ElementBuilder) WithChild(child *Node) *ElementBuilder
func (*ElementBuilder) WithChildFunc ¶
func (b *ElementBuilder) WithChildFunc(fnc NodeFunc) *ElementBuilder
func (*ElementBuilder) WithChildren ¶
func (b *ElementBuilder) WithChildren(children ...*Node) *ElementBuilder
type Node ¶
func NewCommentNode ¶
func NewDoctypeNode ¶
func NewDoctypeNode() *Node
func NewDocumentNode ¶
func NewDocumentNode() *Node
func NewElementNode ¶
func NewRawNode ¶
func NewTextNode ¶
func (*Node) AppendChild ¶
Click to show internal directories.
Click to hide internal directories.