Documentation ¶
Index ¶
- type Heap
- type Item
- type Ms
- func (m *Ms) Append(items ...interface{}) int
- func (m *Ms) Clear()
- func (m *Ms) Contains(item interface{}) bool
- func (m *Ms) Delete(idx int) interface{}
- func (m *Ms) Iterator(fn func(item interface{}) (bool, error))
- func (m *Ms) Len() int
- func (m *Ms) Remove(item interface{}) bool
- func (m *Ms) Take() interface{}
- func (m *Ms) WithDelEventFn(fn MsEventFn) *Ms
- func (m *Ms) WithInsertEventFn(fn MsEventFn) *Ms
- type MsEventFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item struct { Value interface{} // The value of the item; arbitrary. // contains filtered or unexported fields }
An Item is something we manage in a priority queue.
type Ms ¶
type Ms struct {
// contains filtered or unexported fields
}
func (*Ms) WithDelEventFn ¶
func (*Ms) WithInsertEventFn ¶
Click to show internal directories.
Click to hide internal directories.