common

package
v0.0.0-...-d4a708c Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BigIntSorterProcess

func BigIntSorterProcess(planets []BigIntSort)

func Float64SorterProcess

func Float64SorterProcess(planets []Float64Sort)

func Get256

func Get256() hash.Hash

Get256 returns an initialized SHA3-256 hash ready to use. The caller should call Put256 when finished with the returned object.

func Get512

func Get512() hash.Hash

Get512 returns an initialized SHA3-512 hash ready to use. The caller should call Put512 when finished with the returned object.

func Put256

func Put256(h hash.Hash)

Put256 resets h and puts it in the freelist.

func Put512

func Put512(h hash.Hash)

Put512 resets h and puts it in the freelist.

func Uint64SorterProcess

func Uint64SorterProcess(planets []Uint64Sort)

Types

type BigIntSort

type BigIntSort struct {
	Name  string
	Value *big.Int
}

type BigIntSorter

type BigIntSorter struct {
	// contains filtered or unexported fields
}

func (*BigIntSorter) Len

func (s *BigIntSorter) Len() int

func (*BigIntSorter) Less

func (s *BigIntSorter) Less(i, j int) bool

func (*BigIntSorter) Swap

func (s *BigIntSorter) Swap(i, j int)

type Float64Sort

type Float64Sort struct {
	// contains filtered or unexported fields
}

type Float64Sorter

type Float64Sorter struct {
	// contains filtered or unexported fields
}

func (*Float64Sorter) Len

func (s *Float64Sorter) Len() int

func (*Float64Sorter) Less

func (s *Float64Sorter) Less(i, j int) bool

func (*Float64Sorter) Swap

func (s *Float64Sorter) Swap(i, j int)

type Uint64Sort

type Uint64Sort struct {
	Name  string
	Value uint64
}

uint64

type Uint64Sorter

type Uint64Sorter struct {
	// contains filtered or unexported fields
}

func (*Uint64Sorter) Len

func (s *Uint64Sorter) Len() int

func (*Uint64Sorter) Less

func (s *Uint64Sorter) Less(i, j int) bool

func (*Uint64Sorter) Swap

func (s *Uint64Sorter) Swap(i, j int)

Jump to

Keyboard shortcuts

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