sort

package
v1.38.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sort

func Sort(s Sortable)

Types

type Comparable

type Comparable interface {
	// Return <0, 0, or >0 if the receiver is less than, equal to, or greater than the parameter
	Compare(Comparable) int
}

type Sortable

type Sortable []Comparable

func (Sortable) Len

func (s Sortable) Len() int

func (Sortable) Less

func (s Sortable) Less(i, j int) bool

func (Sortable) Swap

func (s Sortable) Swap(i, j int)

Jump to

Keyboard shortcuts

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