I have implemented a binary heap data structure, my code is inside binary_heap.go in a package called binaryheap
This binaryheap package defines a struct, which has my binary heap implementation. How should I name this struct:
- Slice <- shows that I have implemented it using an underlying slice
- Tree <- shows that I have implemented it using an underlying tree
Any suggestions ? What is the idiomatic way ?