Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListAssembler ¶ added in v0.0.3
type ListAssembler interface {
AssembleValue() NodeAssembler
Append(Node)
Done()
}
type MapAssembler ¶ added in v0.0.3
type MapAssembler interface {
AssembleKey() MapKeyAssembler
Insert(string, Node)
Insert2(Node, Node)
Done()
}
type MapKeyAssembler ¶
type MapKeyAssembler interface {
NodeAssembler
AssembleValue() MapValueAssembler
}
type MapValueAssembler ¶
type MapValueAssembler interface {
NodeAssembler
}
type NodeAssembler ¶
type NodeAssembler interface {
BeginMap() MapAssembler
BeginList() ListAssembler
AssignNull()
AssignBool(bool)
AssignInt(int)
AssignFloat(float64)
AssignString(string)
AssignBytes([]byte)
Assign(Node)
CheckError() error // where are these stored? when each child is done, could check this. and have it stored in each child. means each allocs (nonzero struct)... but isn't that true anyway? yeah. well, except now you're apparently getting that for scalars, which is bad.
}
type NodeBuilder ¶
type NodeBuilder interface {
NodeAssembler
Build() (Node, error)
}
Click to show internal directories.
Click to hide internal directories.