Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/arnauddri/algorithms
/ Peek
Method
Peek
data-structures/queue/queue.go:53–58 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
51
}
52
53
func
(q *Queue) Peek()
interface
{} {
54
q.lock.Lock()
55
defer
q.lock.Unlock()
56
57
return
q.queue[0]
58
}
Callers
1
TestNew
Function · 0.45
Calls
no outgoing calls
Tested by
1
TestNew
Function · 0.36