eodsort

package
v0.0.0-...-f0a6b19 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SortChoices = []*discordgo.ApplicationCommandOptionChoice{
	{
		Name:  "Name",
		Value: "name",
	},
	{
		Name:  "Length",
		Value: "length",
	},
	{
		Name:  "Date Created",
		Value: "createdon",
	},
	{
		Name:  "Complexity",
		Value: "complexity",
	},
	{
		Name:  "Difficulty",
		Value: "difficulty",
	},
	{
		Name:  "Used In",
		Value: "usedin",
	},
	{
		Name:  "Creator",
		Value: "creator",
	},
	{
		Name:  "ID",
		Value: "id",
	},
	{
		Name:  "Tree Size",
		Value: "treesize",
	},
	{
		Name:  "Color",
		Value: "color",
	},
	{
		Name:  "Found",
		Value: "found",
	},
}

Functions

func CompareStrings

func CompareStrings(a, b string) bool

Less

func Sort

func Sort(vals any, length int, elemGet func(index int) int, elemTxt func(index int) string, elemSet func(index int, val string), sortName string, user string, db *eodb.DB, postfix bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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