Documentation
¶
Index ¶
- type DataType
- type DataValue
- func (r *DataValue) AppendArrayValue(dataValue *DataValue) *DataValue
- func (r *DataValue) Clone() *DataValue
- func (r *DataValue) DropObjectProperties(names ...string) *DataValue
- func (r *DataValue) DropObjectProperty(name string) *DataValue
- func (r *DataValue) GetArraySize() int
- func (r *DataValue) GetArrayValue(index int) *DataValue
- func (r *DataValue) GetBoolean() bool
- func (r *DataValue) GetError() error
- func (r *DataValue) GetFloat() float64
- func (r *DataValue) GetInteger() int64
- func (r *DataValue) GetIterator() func() interface{}
- func (r *DataValue) GetMissing(selectors ...string) []string
- func (r *DataValue) GetMissingObjectProperties(names ...string) *[]string
- func (r *DataValue) GetObjectProperties() []string
- func (r *DataValue) GetObjectProperty(name string) *DataValue
- func (r *DataValue) GetString() string
- func (r *DataValue) GetType() DataType
- func (r *DataValue) HasAll(selectors ...string) bool
- func (r *DataValue) HasAllObjectProperties(names ...string) bool
- func (r *DataValue) HasObjectProperty(name string) bool
- func (r *DataValue) IsArray() bool
- func (r *DataValue) IsBoolean() bool
- func (r *DataValue) IsFloat() bool
- func (r *DataValue) IsImmutable() bool
- func (r *DataValue) IsInteger() bool
- func (r *DataValue) IsNull() bool
- func (r *DataValue) IsObject() bool
- func (r *DataValue) IsString() bool
- func (r *DataValue) IsValid() bool
- func (r *DataValue) Merge(dataValue DataValueIfc) *DataValue
- func (r *DataValue) PrepareArray() *DataValue
- func (r *DataValue) PrepareObject() *DataValue
- func (r *DataValue) ReplaceArrayValue(index int, dataValue *DataValue) *DataValue
- func (r *DataValue) Select(selector string) *DataValue
- func (r *DataValue) SetBoolean(value bool) *DataValue
- func (r *DataValue) SetFloat(value float64) *DataValue
- func (r *DataValue) SetImmutable() *DataValue
- func (r *DataValue) SetInteger(value int64) *DataValue
- func (r *DataValue) SetNull() *DataValue
- func (r *DataValue) SetObjectProperty(name string, dataValue *DataValue) *DataValue
- func (r *DataValue) SetString(value string) *DataValue
- func (r *DataValue) ToJson() string
- func (r *DataValue) ToString() string
- type DataValueIfc
- type IndexValuePair
- type KeyValuePair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataValue ¶
type DataValue struct {
// contains filtered or unexported fields
}
func NewBoolean ¶
func NewDataValue ¶
func NewDataValue() *DataValue
func NewInteger ¶
func (*DataValue) AppendArrayValue ¶
func (*DataValue) Clone ¶
Clone a deep copy of this entire thing; all pointers dereferenced and copied by value
func (*DataValue) DropObjectProperties ¶
func (*DataValue) DropObjectProperty ¶
func (*DataValue) GetArraySize ¶
func (*DataValue) GetArrayValue ¶
func (*DataValue) GetBoolean ¶
func (*DataValue) GetInteger ¶
func (*DataValue) GetIterator ¶
func (r *DataValue) GetIterator() func() interface{}
Returns iterator func of []KeyValuePair for Objects, []*DataValue for Arrays, nil for other types
func (*DataValue) GetMissing ¶
func (*DataValue) GetMissingObjectProperties ¶
func (*DataValue) GetObjectProperties ¶
func (*DataValue) GetObjectProperty ¶
func (*DataValue) HasAllObjectProperties ¶
func (*DataValue) HasObjectProperty ¶
func (*DataValue) IsImmutable ¶
func (*DataValue) Merge ¶
func (r *DataValue) Merge(dataValue DataValueIfc) *DataValue
func (*DataValue) PrepareArray ¶
func (*DataValue) PrepareObject ¶
func (*DataValue) ReplaceArrayValue ¶
func (*DataValue) SetBoolean ¶
func (*DataValue) SetImmutable ¶
func (*DataValue) SetInteger ¶
func (*DataValue) SetObjectProperty ¶
type DataValueIfc ¶
type DataValueIfc interface {
iterable.IterableIfc
// State
IsValid() bool
GetType() DataType
GetError() error
IsImmutable() bool
SetImmutable() *DataValue
// Nulls
IsNull() bool
SetNull() *DataValue
// Strings
IsString() bool
GetString() string
SetString(value string) *DataValue
// Objects
IsObject() bool
PrepareObject() *DataValue
SetObjectProperty(name string, dataValue *DataValue) *DataValue
DropObjectProperty(name string) *DataValue
HasObjectProperty(name string) bool
GetObjectProperties() []string
GetObjectProperty(name string) *DataValue
HasAllObjectProperties(names ...string) bool
GetMissingObjectProperties(names ...string) *[]string
DropObjectProperties(names ...string) *DataValue
// Booleans
IsBoolean() bool
GetBoolean() bool
SetBoolean(value bool) *DataValue
// Arrays
IsArray() bool
PrepareArray() *DataValue
GetArraySize() int
GetArrayValue(index int) *DataValue
AppendArrayValue(dataValue *DataValue) *DataValue
ReplaceArrayValue(index int, dataValue *DataValue) *DataValue
// Floats
IsFloat() bool
GetFloat() float64
SetFloat(value float64) *DataValue
// Integers
IsInteger() bool
GetInteger() int64
SetInteger(value int64) *DataValue
// Modern amenities ;^)
Select(selector string) *DataValue
HasAll(selectors ...string) bool
GetMissing(selectors ...string) []string
Merge(dataValue DataValueIfc) *DataValue
ToString() string
ToJson() string
Clone() *DataValue
}
type IndexValuePair ¶
type KeyValuePair ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
DigiStratum GoLib - ByteMap
|
DigiStratum GoLib - ByteMap |
|
DigiStratum GoLib - HashMap
|
DigiStratum GoLib - HashMap |
|
DigiStratum GoLib - JSON
|
DigiStratum GoLib - JSON |
|
DigiStratum GoLib - Transcoder for plain text content
|
DigiStratum GoLib - Transcoder for plain text content |
Click to show internal directories.
Click to hide internal directories.