Help us shape the future of Go! Take the 2026 Go Developer Survey

order

package
v0.28.6 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByReferenceOrder

func ByReferenceOrder(nodeIDs []flow.Identifier) func(*flow.Identity, *flow.Identity) bool

ByReferenceOrder return a function for sorting identities based on the order of the given nodeIDs

func Canonical added in v0.17.0

func Canonical(identity1 *flow.Identity, identity2 *flow.Identity) bool

Canonical represents the canonical ordering for identity lists.

func IdentifierCanonical added in v0.26.1

func IdentifierCanonical(id1 flow.Identifier, id2 flow.Identifier) bool

IdentifierCanonical is a function for sorting IdentifierList into canonical order

func IdentityListCanonical added in v0.26.1

func IdentityListCanonical(identities flow.IdentityList) bool

IdentityListCanonical takes a list of identities and check if it's ordered in canonical order.

Types

This section is empty.

Jump to

Keyboard shortcuts

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