 = &amp;Item{
            value:    value,
            priority: priority,
            index:    i,
        }
        i++
    }
    heap.Init(&amp;pq)
    <span class="com">// Insert a new item and then modify its priority.</span>
    item := &amp;Item{
        value:    &#34;orange&#34;,
        priority: 1,
    }
    heap.Push(&amp;pq, item)
    pq.update(item, item.value, 5)
    <span class="com">// Take the items out; they arrive in decreasing priority order.</span>
    for pq.Len() &gt; 0 {
        ite