sort

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OrderASC  = "ASC"
	OrderDESC = "DESC"
)

Variables

View Source
var (
	ErrInvalidSort = xerror.BadRequest(nil, "sort.invalid", "Invalid sort")
)

Functions

This section is empty.

Types

type Sort

type Sort struct {
	Col   string
	Order string
}

func NewListFromString

func NewListFromString(s string) ([]Sort, error)

NewListFromString creates a list of Sort from a string.

func (Sort) Attach

func (s Sort) Attach(b sq.SelectBuilder) sq.SelectBuilder

Attach attaches sort to builder.

Jump to

Keyboard shortcuts

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