Documentation
¶
Index ¶
- Constants
- func Marshal(v any) ([]byte, error)
- func Unmarshal(json_data []byte, v any) error
- type Array
- type Object
- func (r *Object) EnumValue(enum_func func(key string, value *Value))
- func (r *Object) GetValue(key string) *Value
- func (r *Object) HasValue(key string) bool
- func (r *Object) Len() int
- func (r *Object) SetValue(key string, value interface{})
- func (r *Object) ToBytes() []byte
- func (r *Object) ToString() string
- type Value
- func (r *Value) AsArray() *Array
- func (r *Value) AsFloat32() float32
- func (r *Value) AsFloat64() float64
- func (r *Value) AsInt() int
- func (r *Value) AsInt64() int64
- func (r *Value) AsObject() *Object
- func (r *Value) AsString() string
- func (r *Value) GetType() int
- func (r *Value) IsArray() bool
- func (r *Value) IsObject() bool
- func (r *Value) ToBytes() []byte
- func (r *Value) ToString() string
Constants ¶
View Source
const ( T_NIL = iota T_OBJECT T_OBJECT_PTR T_ARRAY T_ARRAY_PTR T_STRING T_BOOL T_NUMBER T_JSON_NUMBER )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Object ¶
type Object struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.