randomstring

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RandomString added in v1.5.0

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

func NewRandomString added in v1.5.0

func NewRandomString(n int) *RandomString

NewRandomString 生成随机字符串对象 1、混合型字符串, 2、数字型字符串 3、字母型字符串(包含大小写)

func (*RandomString) RandStringBytes added in v1.5.0

func (rs *RandomString) RandStringBytes(n int) string

func (*RandomString) RandStringBytesMask added in v1.5.0

func (rs *RandomString) RandStringBytesMask(n int) string

func (*RandomString) RandStringBytesMaskImpr added in v1.5.0

func (rs *RandomString) RandStringBytesMaskImpr(n int) string

func (*RandomString) RandStringBytesMaskImprSrc added in v1.5.0

func (rs *RandomString) RandStringBytesMaskImprSrc(n int) string

func (*RandomString) RandStringBytesMaskImprSrcSB added in v1.5.0

func (rs *RandomString) RandStringBytesMaskImprSrcSB(n int) string

func (*RandomString) RandStringBytesMaskImprSrcUnsafe added in v1.5.0

func (rs *RandomString) RandStringBytesMaskImprSrcUnsafe(n int) string

func (*RandomString) RandStringBytesRmndr added in v1.5.0

func (rs *RandomString) RandStringBytesRmndr(n int) string

func (*RandomString) RandStringRunes added in v1.5.0

func (rs *RandomString) RandStringRunes(n int) string

RandStringRunes 使用 rune 存储随机数

type Source

type Source interface {
	Int63() int64
	Seed(seed int64)
}

Jump to

Keyboard shortcuts

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