queue

package
v0.0.0-...-7b47597 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2020 License: MIT Imports: 1 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 implements queue data structure

func New

func New() *Queue

New returns an empty list

func (*Queue) Empty

func (myQueue *Queue) Empty() bool

Empty evaluates whether the queue is empty

func (*Queue) Pop

func (myQueue *Queue) Pop() interface{}

Pop takes out first value out of the queue

func (*Queue) Push

func (myQueue *Queue) Push(value interface{})

Push pushes a value into the queue

Jump to

Keyboard shortcuts

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