number

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unique

func Unique(prefix string) string

Unique 生成20位的唯一编号,每微秒可产生90W

Types

type Ring

type Ring struct {
	Min int
	Max int
	// contains filtered or unexported fields
}

func NewRing

func NewRing(min, max int) *Ring

func NewShuffleRing

func NewShuffleRing(min, max int) *Ring

func (*Ring) Next

func (r *Ring) Next() int

func (*Ring) Pull

func (r *Ring) Pull() int

func (*Ring) Push

func (r *Ring) Push(n int)

Jump to

Keyboard shortcuts

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