sort

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColumnsNaturally

func ColumnsNaturally(columns [][]string)

func ColumnsSort

func ColumnsSort(columns [][]string, sorters []ColumnSorter)

func NaturalLess

func NaturalLess(str1 string, str2 string) bool

func StringLess

func StringLess(str1 string, str2 string) bool

Types

type ColumnSorter

type ColumnSorter struct {
	Index   int
	Reverse bool
	Less    func(str1 string, str2 string) bool
}

Jump to

Keyboard shortcuts

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