utility

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2019 License: MIT Imports: 4 Imported by: 0

README

utility

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalRand1 = rand.New(rand.NewSource(int64(time.Now().Nanosecond())))
View Source
var GlobalRand2 = rand.New(rand.NewSource(int64(time.Now().Unix())))

Functions

func AppendInt

func AppendInt(buf []byte, u uint64) []byte

func DecodeInt

func DecodeInt(buf []byte) uint64

func EncodeInt

func EncodeInt(u uint64) []byte

func NewIntEncoder

func NewIntEncoder(digits string) (*intEncoder, error)

func UniqueId

func UniqueId() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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