sort

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Float32s

func Float32s(v []float32)

Float32s sorts a slice of float32s in increasing order.

func Int16s

func Int16s(i []int16)

Int16s sorts a slice of int16s in increasing order.

func Int32s

func Int32s(i []int32)

Int32s sorts a slice of int32s in increasing order.

func Int64s

func Int64s(i []int64)

Int64s sorts a slice of int64s in increasing order.

func Int8s

func Int8s(v []int8)

Int8s sorts a slice of int8s in increasing order.

func Uint16s

func Uint16s(u []uint16)

Uint16s sorts a slice of uint16s in increasing order.

func Uint32s

func Uint32s(u []uint32)

Uint32s sorts a slice of uint32s in increasing order.

func Uint64s

func Uint64s(v []uint64)

Uint64s sorts a slice of uint64s in increasing order.

func Uint8s

func Uint8s(v []uint8)

Uint8s sorts a slice of uint8s in increasing order.

func Uints

func Uints(v []uint)

Uints sorts a slice of uints in increasing order.

Types

type Float32Slice

type Float32Slice []float32

Float32Slice attaches the methods of Interface to []float32, sorting in increasing order.

func (Float32Slice) Len

func (f Float32Slice) Len() int

Len implements sort.Interface.

func (Float32Slice) Less

func (f Float32Slice) Less(i, j int) bool

Less implements sort.Interface.

func (Float32Slice) Sort

func (f Float32Slice) Sort()

Sort is a convenience method. Same as sort.Sort(f).

func (Float32Slice) Swap

func (f Float32Slice) Swap(i, j int)

Swap implements sort.Interface.

type Int16Slice

type Int16Slice []int16

Int16Slice attaches the methods of Interface to []int16, sorting in increasing order.

func (Int16Slice) Len

func (i Int16Slice) Len() int

Len implements sort.Interface.

func (Int16Slice) Less

func (i Int16Slice) Less(x, y int) bool

Less implements sort.Interface.

func (Int16Slice) Sort

func (i Int16Slice) Sort()

Sort is a convenience method. Same as sort.Sort(i).

func (Int16Slice) Swap

func (i Int16Slice) Swap(x, y int)

Swap implements sort.Interface.

type Int32Slice

type Int32Slice []int32

Int32Slice attaches the methods of Interface to []int32, sorting in increasing order.

func (Int32Slice) Len

func (i Int32Slice) Len() int

Len implements sort.Interface.

func (Int32Slice) Less

func (i Int32Slice) Less(x, y int) bool

Less implements sort.Interface.

func (Int32Slice) Sort

func (i Int32Slice) Sort()

Sort is a convenience method. Same as sort.Sort(i).

func (Int32Slice) Swap

func (i Int32Slice) Swap(x, y int)

Swap implements sort.Interface.

type Int64Slice

type Int64Slice []int64

Int64Slice attaches the methods of Interface to []int64, sorting in increasing order.

func (Int64Slice) Len

func (i Int64Slice) Len() int

Len implements sort.Interface.

func (Int64Slice) Less

func (i Int64Slice) Less(x, y int) bool

Less implements sort.Interface.

func (Int64Slice) Sort

func (i Int64Slice) Sort()

Sort is a convenience method.

func (Int64Slice) Swap

func (i Int64Slice) Swap(x, y int)

Swap implements sort.Interface.

type Int8Slice

type Int8Slice []int8

Int8Slice attaches the methods of Interface to []int8, sorting in increasing order.

func (Int8Slice) Len

func (i Int8Slice) Len() int

Len implements sort.Interface.

func (Int8Slice) Less

func (i Int8Slice) Less(x, y int) bool

Less implements sort.Interface.

func (Int8Slice) Sort

func (i Int8Slice) Sort()

Sort is a convenience method. Same as sort.Sort(i).

func (Int8Slice) Swap

func (i Int8Slice) Swap(x, y int)

Swap implements sort.Interface.

type Uint16Slice

type Uint16Slice []uint16

Uint16Slice attaches the methods of Interface to []uint16, sorting in increasing order.

func (Uint16Slice) Len

func (u Uint16Slice) Len() int

Len implements sort.Interface.

func (Uint16Slice) Less

func (u Uint16Slice) Less(i, j int) bool

Less implements sort.Interface.

func (Uint16Slice) Sort

func (u Uint16Slice) Sort()

Sort is a convenience method. Same as sort.Sort(u).

func (Uint16Slice) Swap

func (u Uint16Slice) Swap(i, j int)

Swap implements sort.Interface.

type Uint32Slice

type Uint32Slice []uint32

Uint32Slice attaches the methods of Interface to []uint32, sorting in increasing order.

func (Uint32Slice) Len

func (u Uint32Slice) Len() int

Len implements sort.Interface.

func (Uint32Slice) Less

func (u Uint32Slice) Less(i, j int) bool

Less implements sort.Interface.

func (Uint32Slice) Sort

func (u Uint32Slice) Sort()

Sort is a convenience method. Same as sort.Sort(u).

func (Uint32Slice) Swap

func (u Uint32Slice) Swap(i, j int)

Swap implements sort.Interface.

type Uint64Slice

type Uint64Slice []uint64

Uint64Slice attaches the methods of Interface to []uint64, sorting in increasing order.

func (Uint64Slice) Len

func (u Uint64Slice) Len() int

Len implements sort.Interface.

func (Uint64Slice) Less

func (u Uint64Slice) Less(i, j int) bool

Less implements sort.Interface.

func (Uint64Slice) Sort

func (u Uint64Slice) Sort()

Sort is a convenience method. Same as sort.Sort(u).

func (Uint64Slice) Swap

func (u Uint64Slice) Swap(i, j int)

Swap implements sort.Interface.

type Uint8Slice

type Uint8Slice []uint8

Uint8Slice attaches the methods of Interface to []uint8, sorting in increasing order.

func (Uint8Slice) Len

func (u Uint8Slice) Len() int

Len implements sort.Interface.

func (Uint8Slice) Less

func (u Uint8Slice) Less(i, j int) bool

Less implements sort.Interface.

func (Uint8Slice) Sort

func (u Uint8Slice) Sort()

Sort is a convenience method. Same as sort.Sort(u).

func (Uint8Slice) Swap

func (u Uint8Slice) Swap(i, j int)

Swap implements sort.Interface.

type UintSlice

type UintSlice []uint

UintSlice attaches the methods of Interface to []uint, sorting in increasing order.

func (UintSlice) Len

func (u UintSlice) Len() int

Len implements sort.Interface.

func (UintSlice) Less

func (u UintSlice) Less(i, j int) bool

Less implements sort.Interface.

func (UintSlice) Sort

func (u UintSlice) Sort()

Sort is a convenience method. Same as sort.Sort(u).

func (UintSlice) Swap

func (u UintSlice) Swap(i, j int)

Swap implements sort.Interface.

Jump to

Keyboard shortcuts

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