gen

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HASH_MIN            int64  = 16
	HASH_NORMAL         int64  = 32
	HASH_LARGE          int64  = 64
	HASH_MAX            int64  = 128
	MAXINE32            uint32 = 4294967295
	DefaultUuidCntCatch int    = 512
)

Variables

This section is empty.

Functions

func GeneratorFileHash

func GeneratorFileHash(f string) (string, error)

func GeneratorRandomNumber

func GeneratorRandomNumber(max int) chan int

func HashMD5

func HashMD5() string

func HashSH1

func HashSH1() string

func HashSH256

func HashSH256() string

Types

type UUIDGenerator

type UUIDGenerator struct {
	Prefix string
	Suffix uint32
	// contains filtered or unexported fields
}

func NewUUIDGenerator

func NewUUIDGenerator(prefix string) *UUIDGenerator

func (*UUIDGenerator) Get

func (g *UUIDGenerator) Get() string

func (*UUIDGenerator) GetUint32

func (g *UUIDGenerator) GetUint32() uint32

Jump to

Keyboard shortcuts

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