Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/blindlobstar/go-interview-problems
/ NewQueue
Function
NewQueue
10-concurrent-queue/solution/solution.go:11–13 ·
view source on GitHub ↗
(size int)
Source
from the content-addressed store, hash-verified
9
}
10
11
func
NewQueue(size int) *Queue {
12
return
&Queue{ch: make(
chan
int, size)}
13
}
14
15
func
(q *Queue) Push(val int) error {
16
select
{
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected