summaryrefslogtreecommitdiff
path: root/pkg/priority_queue/queue.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/priority_queue/queue.go')
-rw-r--r--pkg/priority_queue/queue.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/pkg/priority_queue/queue.go b/pkg/priority_queue/queue.go
index 79afab18..c12acbf6 100644
--- a/pkg/priority_queue/queue.go
+++ b/pkg/priority_queue/queue.go
@@ -1,15 +1,17 @@
package priorityqueue
+import "fmt"
+
type QueueImpl struct {
}
func NewPriorityQueue() *QueueImpl {
- return nil
+ return &QueueImpl{}
}
// Push the task
-func (q *QueueImpl) Push() {
-
+func (q *QueueImpl) Push(item interface{}) {
+ fmt.Println(item)
}
func (q *QueueImpl) Pop() interface{} {