structs

package
v0.0.0-...-7035aeb Latest Latest
Warning

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

Go to latest
Published: May 25, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandomKey

func RandomKey() string

Types

type Comparable

type Comparable interface {
	Less(k Comparable) bool
}

type Element

type Element struct {
	Key   Comparable
	Value interface{}
}

type Float

type Float float64

func (Float) Less

func (i Float) Less(j Comparable) bool

type Int

type Int int

Type wrappers

func (Int) Less

func (i Int) Less(j Comparable) bool

type PriorityQueue

type PriorityQueue interface {
	Len() int
	Push(Comparable, interface{})
	Pop() *Element
}

func NewPriorityQueue

func NewPriorityQueue() PriorityQueue

Jump to

Keyboard shortcuts

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