queue

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2020 License: Apache-2.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 Item

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

type Queue

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

Base data structure for Queue

func New

func New() *Queue

Initializes new Queue and return it

func (*Queue) Dequeue

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

Extracts first item from the Queue

func (*Queue) Enqueue

func (queue *Queue) Enqueue(item interface{})

Puts a given item into Queue

func (*Queue) IsEmpty

func (queue *Queue) IsEmpty() bool

IsEmpty

func (*Queue) Peek

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

Peek first

func (*Queue) PeekBack

func (queue *Queue) PeekBack() interface{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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