sortx

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2022 License: BSD-3-Clause Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key string

type Order

type Order int64
const (
	SortOrderAscending Order = iota + 1
	SortOrderDescending
)

type Sort

type Sort struct {
	Key   Key
	Order Order
}

func NewSorts

func NewSorts(qs string) []Sort

NewSorts create sorting based on Format:

sort=key1:asc,key2:desc,key3:asc

Jump to

Keyboard shortcuts

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