Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/arnauddri/algorithms
/ Queue
Struct
Queue
data-structures/queue/queue.go:5–9 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
3
import
"sync"
4
5
type
Queue
struct
{
6
queue []
interface
{}
7
len int
8
lock *sync.Mutex
9
}
10
11
func
New() *Queue {
12
queue := &Queue{}
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected