sorter

package module
v0.0.0-...-2d10a2c Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2018 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rule

type Rule func(i1, i2 interface{}) bool

Rule is a generic comparator. Client must provide its own specific implementation per each type.

type Sorter

type Sorter interface {
	By(Rule)
}

Sorter

func Sort

func Sort(vals []interface{}) Sorter

Sort takes a slice of interface{} values and returns a Sorter object

Jump to

Keyboard shortcuts

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