dpdimsort

package
v1.2.23 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2020 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ordering

type Ordering interface {
	Less(dimensions map[string]string, currentOrder []string, i int, j int) bool
	Sort(dimensions map[string]string) []string
}

Ordering describes how dimensions should be sorted

func NewOrdering

func NewOrdering(dimensionsOrder []string) Ordering

NewOrdering creates a sorter that sorts dimensions in dimensionsOrder order, putting any dimension inside dimensionsOrder ahead of any dimension not inside dimensionsOrder

Jump to

Keyboard shortcuts

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