Documentation ¶
Index ¶
- type K
- type OrderedMap
- func (om *OrderedMap) Append(keyInfs interface{}, valInfs interface{}) (e error)
- func (om *OrderedMap) Clear()
- func (om *OrderedMap) Delete(keyInfs interface{}) (e error)
- func (om *OrderedMap) Get(keyInfs interface{}) interface{}
- func (om *OrderedMap) KeyLists() *list.List
- func (om *OrderedMap) Len() int
- func (om *OrderedMap) Pop(keyInfs interface{}) interface{}
- func (om *OrderedMap) ValueLists() *list.List
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrderedMap ¶
type OrderedMap struct { TMap map[K]interface{} TOrder *list.List // contains filtered or unexported fields }
Structure for extending the map collection.
keyType : Key type of Map . keyType : Value type of Map. TMap : Map of the object to be extended. TOrder : Insertion order list of map.
func (*OrderedMap) Append ¶
func (om *OrderedMap) Append(keyInfs interface{}, valInfs interface{}) (e error)
Append Elements to Map
Returns: - error contents
and nil if no error occurred.
func (*OrderedMap) Delete ¶
func (om *OrderedMap) Delete(keyInfs interface{}) (e error)
Delete Map Element
Returns: - error contents
and nil if no error occurred.
func (*OrderedMap) Get ¶
func (om *OrderedMap) Get(keyInfs interface{}) interface{}
Get Elements from receive parameter.
Returns: - Value of Map
Return the interface that value has entered the Map.
func (*OrderedMap) KeyLists ¶
func (om *OrderedMap) KeyLists() *list.List
Convert Map keys to List.
Returns: - List of Map Keys
func (*OrderedMap) Len ¶
func (om *OrderedMap) Len() int
Get Map length
Returns: - Length of the map Element.
func (*OrderedMap) Pop ¶
func (om *OrderedMap) Pop(keyInfs interface{}) interface{}
Get Elements from Map and delete from List
Returns: - Value of Map
Return the interface that value has entered the Map.
func (*OrderedMap) ValueLists ¶
func (om *OrderedMap) ValueLists() *list.List
Convert Map values to List.
Returns: - List of Map Values
Click to show internal directories.
Click to hide internal directories.