queue

package
v0.0.0-...-e7326f8 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByPriority

type ByPriority[T any] []Queue[T]

func (ByPriority[T]) Len

func (a ByPriority[T]) Len() int

func (ByPriority[T]) Less

func (a ByPriority[T]) Less(i, j int) bool

func (ByPriority[T]) Swap

func (a ByPriority[T]) Swap(i, j int)

type Queue

type Queue[T any] struct {
	Priority float64
	Value    T
}

Jump to

Keyboard shortcuts

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