Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
11
func
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
20
func
(q *Queue) Len() int {
21
//q.lock.Lock()
Callers
1
TestNew
Function · 0.70
Calls
no outgoing calls
Tested by
1
TestNew
Function · 0.56