Documentation ¶
Index ¶
Constants ¶
View Source
const ( String lexemeType = iota Number Bool Null ObjectOpen ObjectClose ArrayOpen ArrayClose Comma Colon )
all possible JSON lexeme
Variables ¶
View Source
var ErrEOF = errors.New("No more lexeme")
ErrEOF represent no more lexeme
View Source
var ErrRootNodeShouldBeObjectOrArray = errors.New("Root node should be object or array")
ErrRootNodeShouldBeObjectOrArray ...
Functions ¶
This section is empty.
Types ¶
type ArrayNode ¶
type ArrayNode struct { Parent Node `json:"-"` Items []interface{} }
ArrayNode represent node of JSON array
type LexemeList ¶
type LexemeList struct {
// contains filtered or unexported fields
}
LexemeList ...
type ObjectNode ¶
type ObjectNode struct { Parent Node `json:"-"` NextKey string `json:"-"` Properties map[string]interface{} }
ObjectNode represent node of JSON object
func (*ObjectNode) Append ¶
func (n *ObjectNode) Append(i interface{})
Append append sub node or other things
type SyntaxTree ¶
SyntaxTree syntax tree
Click to show internal directories.
Click to hide internal directories.