Is golang container/heap effectively doing heap sort on an underlying slice?
It doesn't look like underlying array is always sorted.
type IntHeap []int
// ... other interface implementation
func main() {
a := []int{}
h := IntHeap(a)
heap.Init(&h)
heap.Push(&h, 3)
heap.Push(&h, 2)
heap.Push(&h, 5)
// underlying array 'a' is not sorted
fmt.Printf("a: %+v\n", a)
}