sort

package
v0.0.0-...-fb5fdcc Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sort

type Sort struct {
	// 字段名
	Field string `json:"field,omitempty"`
	// 倒序
	Desc bool `json:"desc,omitempty"`
}

func Parse

func Parse(s string) Sort

func (Sort) String

func (s Sort) String() string

type Sorts

type Sorts []Sort

func ParseArray

func ParseArray(s string) Sorts

func (Sorts) String

func (s Sorts) String() string

Jump to

Keyboard shortcuts

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