wsort

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Int64Slice

type Int64Slice []int64

func (Int64Slice) Len

func (p Int64Slice) Len() int

func (Int64Slice) Less

func (p Int64Slice) Less(i, j int) bool

func (Int64Slice) Swap

func (p Int64Slice) Swap(i, j int)

type Item

type Item struct {
	Key   uint64
	Value uint64
}

type Item2

type Item2 struct {
	Key    uint64
	Value  uint64
	Value2 uint64
}

type MapSorter

type MapSorter []Item

func NewMapSorter

func NewMapSorter(in map[uint64]uint64) MapSorter

func (MapSorter) Len

func (p MapSorter) Len() int

func (MapSorter) Less

func (p MapSorter) Less(i, j int) bool

func (MapSorter) Swap

func (p MapSorter) Swap(i, j int)

type MapSorter2

type MapSorter2 []Item2

func NewMapSorter2

func NewMapSorter2(in map[uint64]Item2) MapSorter2

func (MapSorter2) Len

func (p MapSorter2) Len() int

func (MapSorter2) Less

func (p MapSorter2) Less(i, j int) bool

func (MapSorter2) Swap

func (p MapSorter2) Swap(i, j int)

type Uint32Slice

type Uint32Slice []uint32

func (Uint32Slice) Len

func (p Uint32Slice) Len() int

func (Uint32Slice) Less

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

func (Uint32Slice) Swap

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

type Uint64Slice

type Uint64Slice []uint64

func (Uint64Slice) Len

func (p Uint64Slice) Len() int

func (Uint64Slice) Less

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

func (Uint64Slice) Swap

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

Jump to

Keyboard shortcuts

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