(value interface{}, priority int)
| 11 | } |
| 12 | |
| 13 | func NewItem(value interface{}, priority int) (i *Item) { |
| 14 | return &Item{ |
| 15 | Value: value, |
| 16 | Priority: priority, |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | func (x Item) Less(than heap.Item) bool { |
| 21 | return x.Priority < than.(Item).Priority |
no outgoing calls