queue

package
v0.0.0-...-4557a6c Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 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 Item

type Item struct {
	Value    interface{}
	Priority int
	// contains filtered or unexported fields
}

type Queue

type Queue interface {
	Push(item *Item)
	Update(item *Item)
	Pop() *Item
	Len() int
	Peek() *Item
}

func New

func New(items ...*Item) Queue

Jump to

Keyboard shortcuts

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