sort

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sort

func Sort(arr []Comparable)

func SortBy

func SortBy(arr []interface{}, comparator Comparator)

Types

type Comparable

type Comparable interface {
	CompareTo(other Comparable) bool
}

type Comparator

type Comparator func(o1 interface{}, o2 interface{}) bool

Jump to

Keyboard shortcuts

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