Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Queue ¶
type Queue[V any] interface { // Push adds an element to the queue. Push(V) // Pop removes and returns the element at the front of the queue. Pop() (V, bool) // Peek returns the element at the front of the queue without removing it. // It returns nil if the queue is empty. Peek() (V, bool) // Len returns the number of elements in the queue. Len() int }
func NewWithSize ¶
NewWithSize returns a new queue with the specified size.
Click to show internal directories.
Click to hide internal directories.