Categorygithub.com/ipfs/go-ipfs-pq
modulepackage
0.0.3
Repository: https://github.com/ipfs/go-ipfs-pq.git
Documentation: pkg.go.dev

# README

go-ipfs-pq

standard-readme compliant GoDoc Build Status

go-ipfs-pq implements a priority queue.

Table of Contents

Install

go-ipfs-pq works like a regular Go module:

> go get github.com/ipfs/go-ipfs-pq

Usage

import "github.com/ipfs/go-ipfs-pq"

Check the GoDoc documentation

Contribute

PRs accepted.

Small note: If editing the README, please conform to the standard-readme specification.

License

MIT © Protocol Labs, Inc.

# Functions

New creates a PQ with a client-supplied comparator.

# Interfaces

Elem describes elements that can be added to the PQ.
PQ is a basic priority queue.

# Type aliases

ElemComparator returns true if pri(a) > pri(b).