72 lines
1.1 KiB
Go
72 lines
1.1 KiB
Go
package q5
|
|
|
|
const (
|
|
XOT_SIMPLE = 0
|
|
XOT_ARRAY = iota
|
|
XOT_OBJECT = iota
|
|
)
|
|
|
|
type XObject struct {
|
|
_type int8
|
|
_val interface{}
|
|
}
|
|
|
|
func (this *XObject) Size(key interface{}) int32 {
|
|
return 0
|
|
}
|
|
|
|
func (this *XObject) Reset() {
|
|
}
|
|
|
|
func (this *XObject) GetType() int8{
|
|
return this._type
|
|
}
|
|
|
|
func (this *XObject) AsXValue() *XValue {
|
|
return nil
|
|
}
|
|
|
|
func (this *XObject) At(key interface{}) *XObject {
|
|
return nil
|
|
}
|
|
|
|
func (this *XObject) Get(key interface{}) *XValue {
|
|
return nil
|
|
}
|
|
|
|
func (this *XObject) HasKey(key interface{}) bool {
|
|
return false
|
|
}
|
|
|
|
func (this *XObject) ReadFromFile(fileName string) bool {
|
|
return false
|
|
}
|
|
|
|
func (this *XObject) ReadFromJsonFile(fileName string) bool {
|
|
return false
|
|
}
|
|
|
|
func (this *XObject) ReadFromJsonString(data string) bool {
|
|
return false
|
|
}
|
|
|
|
func (this *XObject) ReadFromXmlFile(fileName string) bool {
|
|
return false
|
|
}
|
|
|
|
func (this *XObject) ReadFromXmlString(data string) bool {
|
|
return false
|
|
}
|
|
|
|
func (this *XObject) ReadFromUrlQueryString(data string) bool {
|
|
return false
|
|
}
|
|
|
|
func (this *XObject) ToJsonStr() string {
|
|
return ""
|
|
}
|
|
|
|
func (this *XObject) ToUrlEncodeSr() string {
|
|
return ""
|
|
}
|