genSort

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSortedValues

func GetSortedValues[K ~int, V comparable](input map[K]V, dir SortDirection) ([]V, error)

GetSortedValues returns the key-sorted values of a given input map.

Types

type SortDirection

type SortDirection int
const (
	ASC SortDirection = iota
	DESC
)

Jump to

Keyboard shortcuts

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