sort

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

func New

func New(adapter filter.ResolverAdapter) *Resolver

func (*Resolver) Resolve

func (r *Resolver) Resolve(e SortExpr) (SortExpr, error)

type SortExpr

type SortExpr interface {
	// contains filtered or unexported methods
}

func Parse

func Parse(s string) (SortExpr, error)

type SortExprDefault

type SortExprDefault struct{}

type SortExprRandom

type SortExprRandom struct{}

type SortExprSort

type SortExprSort struct {
	Items []SortItem
}

type SortItem

type SortItem struct {
	Type SortType
	Name string
}

type SortType

type SortType int
const (
	SortTypeAsc SortType = iota
	SortTypeDesc
)

Jump to

Keyboard shortcuts

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