sorter

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SortFlag

type SortFlag int

SortFlag provides a type for sort flags

const (
	// SortByKey - sort hash data by key
	SortByKey SortFlag = iota
)

type Sorter

type Sorter interface {
	// Reverse reverses the order of the data set.
	Reverse(SortFlag) error
	// Sort sorts the model data.
	Sort(SortFlag) error
	// Len returns the number of items stored in this model.
	Len() int
}

Sorter describes a sorter.

Jump to

Keyboard shortcuts

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