Documentation
¶
Overview ¶
Package hashmap
@author: xwc1125
Package hashmap ¶
@author: xwc1125
Package hashmap ¶
@author: xwc1125
Index ¶
- func Get(v interface{}, path ...interface{}) (interface{}, error)
- func GetMapI(v interface{}, path ...interface{}) (map[interface{}]interface{}, error)
- func GetMapS(v interface{}, path ...interface{}) (map[string]interface{}, error)
- func StringToByteSizesHookFunc(f reflect.Type, des reflect.Type, data interface{}) (interface{}, error)
- type HashMap
- func (m *HashMap) Decode(data []byte) error
- func (m *HashMap) DecodeRLP(s *rlp.Stream) error
- func (m *HashMap) EncodeRLP(w io.Writer) error
- func (m *HashMap) Exist(k string) bool
- func (m *HashMap) ForEach() map[string]interface{}
- func (m *HashMap) Get(k string) (obj interface{}, objType string, isExist bool)
- func (m *HashMap) GetObj(k string) (obj interface{})
- func (m *HashMap) GetValue(k string) reflect.Value
- func (m *HashMap) GetValues(k string) []reflect.Value
- func (m *HashMap) HasKey(k string) (bool, string)
- func (m *HashMap) MarshalJSON() ([]byte, error)
- func (m *HashMap) Put(k string, v interface{})
- func (m *HashMap) Remove(k string) (interface{}, bool)
- func (m *HashMap) SetSafe(isSafe bool)
- func (m *HashMap) Size() int
- func (m *HashMap) Sort() []KV
- func (m *HashMap) String() string
- func (m *HashMap) ToStruct(out interface{}) error
- func (m *HashMap) UnmarshalJSON(bytes []byte) error
- type KV
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMapI ¶
func GetMapI(v interface{}, path ...interface{}) (map[interface{}]interface{}, error)
Types ¶
type HashMap ¶
type HashMap struct {
// contains filtered or unexported fields
}
HashMap ...
func NewHashMapFill ¶
func NewHashMapFill(val interface{}) *HashMap
func NewHashMapSame ¶
func (*HashMap) MarshalJSON ¶
func (*HashMap) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.