common

package
v0.0.0-...-516970c Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2019 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MILLION = 1000000
	BILLION = 1000000000

	Uint640 = uint64(0)
	Int640  = int64(0)
	Uint320 = uint32(0)
	Int320  = int32(0)
	Uint80  = uint8(0)
	Int80   = int8(0)
)

Variables

View Source
var (
	ErrShutdown = errors.New("shutdown")

	ErrBusy = errors.New("running same function")
)
View Source
var (
	Big1   = big.NewInt(1)
	Big2   = big.NewInt(2)
	Big3   = big.NewInt(3)
	Big0   = big.NewInt(0)
	Big32  = big.NewInt(32)
	Big256 = big.NewInt(256)
	Big257 = big.NewInt(257)
)

Functions

func Bzero

func Bzero(buf []byte) error

func CloneBytes

func CloneBytes(b []byte) []byte

func Concat

func Concat(slices [][]byte) ([]byte, error)

func ConcatUnsafe

func ConcatUnsafe(slices [][]byte) []byte

func MaxInt

func MaxInt(a int, b int) int

func MaxUint64

func MaxUint64(a uint64, b uint64) uint64

func MinInt

func MinInt(a, b int) int

func Shuffle

func Shuffle(src []interface{}) ([]interface{}, error)

func Uint64Minus

func Uint64Minus(a uint64, b uint64) uint64

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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