queue

package
v0.0.0-...-49c0182 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 3 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[T any] struct {
	// contains filtered or unexported fields
}

func New

func New[T any]() *Queue[T]

func (*Queue[T]) DeQueue

func (q *Queue[T]) DeQueue() T

func (*Queue[T]) EnQueue

func (q *Queue[T]) EnQueue(data T)

func (*Queue[T]) Peek

func (q *Queue[T]) Peek() T

func (*Queue[T]) Size

func (q *Queue[T]) Size() int

func (*Queue[T]) String

func (q *Queue[T]) String() string

Jump to

Keyboard shortcuts

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