std
v1.0.0
go.neonxp.ru/json/std
Documentation
pkg.go.dev ↗Functions
Factory
func Factory(typ json.NodeType) (json.Node, error)
Types
ArrayNode
type ArrayNode []json.Node
ArrayNode.Append
func (o *ArrayNode) Append(v json.Node)
ArrayNode.Index
func (o *ArrayNode) Index(i int) json.Node
ArrayNode.Len
func (o *ArrayNode) Len() int
ArrayNode.String
func (o *ArrayNode) String() string
BooleanNode
type BooleanNode struct {
Value bool
}
BooleanNode.GetBool
func (o *BooleanNode) GetBool() bool
BooleanNode.SetBool
func (o *BooleanNode) SetBool(v bool)
BooleanNode.String
func (o BooleanNode) String() string
NullNode
type NullNode struct{}
NullNode.String
func (o NullNode) String() string
NumberNode
type NumberNode struct {
Value float64
}
NumberNode.GetNumber
func (o *NumberNode) GetNumber() float64
NumberNode.SetNumber
func (o *NumberNode) SetNumber(v float64)
NumberNode.String
func (o *NumberNode) String() string
ObjectNode
type ObjectNode map[string]json.Node
ObjectNode.GetByKey
func (o ObjectNode) GetByKey(k string) (json.Node, bool)
ObjectNode.SetKeyValue
func (o ObjectNode) SetKeyValue(k string, v json.Node)
ObjectNode.String
func (o ObjectNode) String() string
StringNode
type StringNode struct {
Value string
}
StringNode.GetString
func (o *StringNode) GetString() string
StringNode.SetString
func (o *StringNode) SetString(v string)
StringNode.String
func (o *StringNode) String() string