Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoTurkiye/training
/ Enqueue
Method
Enqueue
301-algorithms/linear-lists/queue/queue.go:15–17 ·
view source on GitHub ↗
(value MyItem)
Source
from the content-addressed store, hash-verified
13
}
14
15
func
(q *Queue) Enqueue(value MyItem) {
16
q.list = append(q.list, value)
17
}
18
19
func
(q *Queue) Dequeue() MyItem {
20
first := q.list[0]
Callers
1
main
Function · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected