Documentation ¶
Index ¶
- type Object
- func (obj Object) GetVal() interface{}
- func (obj Object) IsNill() bool
- func (obj Object) Scan(v interface{}) error
- func (obj *Object) SetVal(newVal interface{}) *Object
- func (obj Object) ToBool(d bool) bool
- func (obj Object) ToByte(d []byte) []byte
- func (obj Object) ToFloat32(d float32) float32
- func (obj Object) ToFloat32Map(d map[float32]interface{}) map[float32]interface{}
- func (obj Object) ToFloat64(d float64) float64
- func (obj Object) ToFloat64Map(d map[float64]interface{}) map[float64]interface{}
- func (obj Object) ToInt(d int) int
- func (obj Object) ToInt16(d int16) int16
- func (obj Object) ToInt32(d int32) int32
- func (obj Object) ToInt32Map(d map[int32]interface{}) map[int32]interface{}
- func (obj Object) ToInt64(d int64) int64
- func (obj Object) ToInt64Map(d map[int64]interface{}) map[int64]interface{}
- func (obj Object) ToInt8(d int8) int8
- func (obj Object) ToIntMap(d map[int]interface{}) map[int]interface{}
- func (obj Object) ToStrMap(d map[string]interface{}) map[string]interface{}
- func (obj Object) ToString(d string) string
- func (obj Object) ToTime(d time.Time) time.Time
- func (obj Object) ToUint(d uint) uint
- func (obj Object) ToUint16(d uint16) uint16
- func (obj Object) ToUint32(d uint32) uint32
- func (obj Object) ToUint64(d uint64) uint64
- func (obj Object) ToUint8(d uint8) uint8
- type SafeMap
- func (m *SafeMap) Clear()
- func (m *SafeMap) ContainsKey(k interface{}) bool
- func (m *SafeMap) Cut(k interface{}) (interface{}, bool)
- func (m *SafeMap) CutR() (interface{}, bool)
- func (m *SafeMap) Delete(k interface{})
- func (m *SafeMap) DoRange(fun func(key, val interface{}) error) error
- func (m *SafeMap) Get(k interface{}) (interface{}, bool)
- func (m *SafeMap) Keys() []interface{}
- func (m SafeMap) New() *SafeMap
- func (m *SafeMap) Put(k interface{}, v interface{})
- func (m *SafeMap) PutX(k interface{}, v interface{}) error
- func (m *SafeMap) Size() int
- func (m *SafeMap) ToMap() map[interface{}]interface{}
- func (m *SafeMap) Values() []interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Object ¶
type Object struct {
// contains filtered or unexported fields
}
Object interface类型转换
func (Object) ToFloat32Map ¶
ToFloat32Map 转换为map[float32]interface{}
func (Object) ToFloat64Map ¶
ToFloat64Map 转换为map[float64]interface{}
func (Object) ToInt32Map ¶
ToInt32Map 转换为map[int32]interface{}
func (Object) ToInt64Map ¶
ToInt64Map 转换为map[int64]interface{}
Click to show internal directories.
Click to hide internal directories.