queue

package
v0.0.0-...-604e922 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2013 License: MIT Imports: 0 Imported by: 119

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
}

func New

func New() *Queue

Create a new queue

func (*Queue) Dequeue

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

Take the next item off the front of the queue

func (*Queue) Enqueue

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

Put an item on the end of a queue

func (*Queue) Len

func (this *Queue) Len() int

Return the number of items in the queue

func (*Queue) Peek

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

Return 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