Documentation ¶
Index ¶
- type EqualFunc
- type HM
- func (hm *HM) Exists(key interface{}) bool
- func (hm *HM) Expand(capacity int) *HM
- func (hm *HM) Get(key interface{}) interface{}
- func (hm *HM) GetCapacity() int
- func (hm *HM) GetCount() int
- func (hm *HM) Iterate(readFunc ReadFunc)
- func (hm *HM) IterateAndUpdate(isValidAndUpdateFunc IsValidAndUpdataFunc)
- func (hm *HM) Put(key interface{}, value interface{})
- func (hm *HM) Remove(key interface{})
- func (hm *HM) RemoveAndUpdate(key interface{}, updateFunc UpdateFunc)
- func (hm *HM) RemoveUnsafe(key interface{})
- func (hm *HM) UpdateWithFunc(key interface{}, updateFunc UpdateFunc)
- type IsValidAndUpdataFunc
- type Pairs
- type ReadFunc
- type UpdateFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HM ¶
type HM struct {
// contains filtered or unexported fields
}
func (*HM) GetCapacity ¶ added in v1.0.6
func (*HM) IterateAndUpdate ¶
func (hm *HM) IterateAndUpdate(isValidAndUpdateFunc IsValidAndUpdataFunc)
func (*HM) RemoveAndUpdate ¶
func (hm *HM) RemoveAndUpdate(key interface{}, updateFunc UpdateFunc)
func (*HM) RemoveUnsafe ¶ added in v1.0.5
func (hm *HM) RemoveUnsafe(key interface{})
func (*HM) UpdateWithFunc ¶
func (hm *HM) UpdateWithFunc(key interface{}, updateFunc UpdateFunc)
type IsValidAndUpdataFunc ¶
type IsValidAndUpdataFunc func(key interface{}, value interface{}) bool
type UpdateFunc ¶
type UpdateFunc func(value interface{})
Click to show internal directories.
Click to hide internal directories.