queue

package
v0.0.0-...-fffdf24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2022 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue

type Queue struct {
	// contains filtered or unexported fields
}

Queue represents the queue structure

func New

func New() *Queue

New creates a new queue

func (*Queue) Dequeue

func (q *Queue) Dequeue() interface{}

Dequeue takes the next item off the front of the queue

func (*Queue) Enqueue

func (q *Queue) Enqueue(value interface{})

Enqueue puts an item on the end of a queue

func (*Queue) Len

func (q *Queue) Len() int

Len returns the number of items in the queue

func (*Queue) Peek

func (q *Queue) Peek() interface{}

Peek returns the first item in the queue without removing it

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL