package
Version:
v0.0.0-...-59689ed
Opens a new window with list of versions in this module.
Published: Feb 27, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package queue implements of a circular queue.
type Data struct {
Name string
}
Data represents what is being stored on the queue.
type Queue struct {
Count int
}
Queue represents a list of data.
New returns a queue with a set capacity.
Dequeue removes data into the queue if data exists.
Enqueue inserts data into the queue if there
is available capacity.
Operate accepts a function that takes data and calls
the specified function for every piece of data found.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.