Help us shape the future of Go! Take the 2026 Go Developer Survey

example

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2018 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 Generic

type Generic generic.Type

type GenericQueue

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

GenericQueue represents a queue of Generic types.

func NewGenericQueue

func NewGenericQueue() *GenericQueue

NewGenericQueue makes a new empty Generic queue.

func (*GenericQueue) Deq

func (q *GenericQueue) Deq() Generic

Deq removes and returns the next item in the queue.

func (*GenericQueue) Enq

func (q *GenericQueue) Enq(obj Generic) *GenericQueue

Enq adds an item to the queue.

func (*GenericQueue) Len

func (q *GenericQueue) Len() int

Len gets the current number of Generic items in the queue.

Jump to

Keyboard shortcuts

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