Documentation ¶
Index ¶
- type RandomString
- func (rs *RandomString) RandStringBytes(n int) string
- func (rs *RandomString) RandStringBytesMask(n int) string
- func (rs *RandomString) RandStringBytesMaskImpr(n int) string
- func (rs *RandomString) RandStringBytesMaskImprSrc(n int) string
- func (rs *RandomString) RandStringBytesMaskImprSrcSB(n int) string
- func (rs *RandomString) RandStringBytesMaskImprSrcUnsafe(n int) string
- func (rs *RandomString) RandStringBytesRmndr(n int) string
- func (rs *RandomString) RandStringRunes(n int) string
- type Source
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 存储随机数
Click to show internal directories.
Click to hide internal directories.