Documentation ¶
Index ¶
- type Map
- func (this Map) AsJSON() []byte
- func (this Map) AsPrettyJSON() []byte
- func (this Map) Delete(key ...string)
- func (this Map) Get(key string) interface{}
- func (this Map) GetBool(key string) bool
- func (this Map) GetBytes(key string) []byte
- func (this Map) GetFloat32(key string) float32
- func (this Map) GetFloat64(key string) float64
- func (this Map) GetInt(key string) int
- func (this Map) GetInt16(key string) int16
- func (this Map) GetInt32(key string) int32
- func (this Map) GetInt64(key string) int64
- func (this Map) GetInt8(key string) int8
- func (this Map) GetMap(key string) Map
- func (this Map) GetSlice(key string) []interface{}
- func (this Map) GetString(key string) string
- func (this Map) GetUint(key string) uint
- func (this Map) GetUint16(key string) uint16
- func (this Map) GetUint32(key string) uint32
- func (this Map) GetUint64(key string) uint64
- func (this Map) GetUint8(key string) uint8
- func (this Map) GoMap() map[string]interface{}
- func (this Map) Has(key string) bool
- func (this Map) Increase(key string, delta interface{}) interface{}
- func (this Map) Keys() []interface{}
- func (this Map) Len() int
- func (this Map) Put(key string, value interface{})
- func (this Map) Values() []interface{}
- type OrderedMap
- func (this *OrderedMap) Delete(key interface{})
- func (this *OrderedMap) Get(key interface{}) (value interface{}, ok bool)
- func (this *OrderedMap) Keys() []interface{}
- func (this *OrderedMap) Len() int
- func (this *OrderedMap) Put(key interface{}, value interface{})
- func (this *OrderedMap) Range(iterator func(key interface{}, value interface{}))
- func (this *OrderedMap) Reverse()
- func (this *OrderedMap) Sort()
- func (this *OrderedMap) SortKeys()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrderedMap ¶
type OrderedMap struct {
// contains filtered or unexported fields
}
func NewOrderedMap ¶
func NewOrderedMap() *OrderedMap
func (*OrderedMap) Get ¶
func (this *OrderedMap) Get(key interface{}) (value interface{}, ok bool)
Get 取得元素值
func (*OrderedMap) Range ¶
func (this *OrderedMap) Range(iterator func(key interface{}, value interface{}))
Range 对每个元素执行迭代器
Click to show internal directories.
Click to hide internal directories.