I haven't used the container/heap package before but looking at it you
can't do what you're asking. The heap interface doesn't define an
"iterator" or any other similar method to fetch the data in "order".
You could pop and push them all back on, but that's modifying the
heap.
So you either need to go one level down and do it on the type that's
implementing the container/heap interface or write your own
implementation.
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
golang-nuts...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.