queue

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2020 License: MIT 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 a queue

func (*Queue) Empty

func (q *Queue) Empty() bool

Empty the queue is empty or not

func (*Queue) Front

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

Front return the front data of the queue

func (*Queue) Pop

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

Pop get the front data of the queue

func (*Queue) Push

func (q *Queue) Push(data interface{})

Push add data to the front of the queue

func (*Queue) Rear

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

Rear return the rear data of the queue

func (*Queue) Size

func (q *Queue) Size() int

Size return the queue size

Jump to

Keyboard shortcuts

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