simplesort

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: MIT Imports: 4 Imported by: 0

README

Go-simpleSort

Simplified version of golang sort. https://github.com/Mustenaka/Go-simpleSort

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FunctionTest

func FunctionTest(data interface{})

@title SimplesortStable @description reflect test

func Simplesort

func Simplesort(args interface{}, filedName string, order bool) ([]interface{}, error)

@title Simplesort @description simplified non-generic sort method. @param data interface{} "Data to be sorted." @param filedName string "sorted index field name." @param order bool "oder or reverse order" @return interface{}, error "sort results, nil if no error."

func SimplesortStable

func SimplesortStable(args []interface{})

默认稳定简单排序

func SinTest

func SinTest(filedName string)

test instance of Simplesort

Types

type SortBy

type SortBy []interface{}

func (SortBy) Len

func (a SortBy) Len() int

func (SortBy) Less

func (a SortBy) Less(i, j int) bool

func (SortBy) Swap

func (a SortBy) Swap(i, j int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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