sortx

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 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 string
const (
	OrderAscending  Order = "ASC"
	OrderDescending Order = "DESC"
)

type Sort

type Sort struct {
	Key      Key
	Order    Order
	Original string
}

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