MCPcopy Index your code
hub / github.com/0xAX/go-algorithms / New

Function New

queue/queue.go:41–47  ·  view source on GitHub ↗

Initializes new Queue and return it

()

Source from the content-addressed store, hash-verified

39
40// Initializes new Queue and return it
41func New() *Queue {
42 var queue *Queue = new(Queue)
43
44 queue.depth = 0
45
46 return queue
47}
48
49// Puts a given item into Queue
50func (queue *Queue) Enqueue(item interface{}) {

Callers 1

TestQueueFunction · 0.70

Calls

no outgoing calls

Tested by 1

TestQueueFunction · 0.56