rand

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes

func Bytes(n int) []byte

Bytes 生成一个随机字节

func Complex

func Complex(n int) string

Complex 复杂字符串,英文大写+英文小写+数字

func Create

func Create(n int, letters string) string

Create 用给定的字符串列表,生成随机字符串

func Letters

func Letters(n int) string

Letters 英文小写

func LowercaseLetters

func LowercaseLetters(n int) string

LowercaseLetters 英文小写

func Numbers

func Numbers(n int) string

Numbers 数字字符串

func Secure

func Secure(n int) string

Secure 安全字符串,英文大写+英文小写+数字+特殊字符

func Simple

func Simple(n int) string

Simple 普通字符串,英文小写+数字

func UppercaseLetters

func UppercaseLetters(n int) string

UppercaseLetters 英文大写

Types

This section is empty.

Jump to

Keyboard shortcuts

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