MCPcopy Index your code
hub / github.com/arnauddri/algorithms / New

Function New

data-structures/queue/queue.go:11–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9}
10
11func New() *Queue {
12 queue := &Queue{}
13 queue.queue = make([]interface{}, 0)
14 queue.len = 0
15 queue.lock = new(sync.Mutex)
16
17 return queue
18}
19
20func (q *Queue) Len() int {
21 //q.lock.Lock()

Callers 1

TestNewFunction · 0.70

Calls

no outgoing calls

Tested by 1

TestNewFunction · 0.56