randutil

package
v0.0.0-...-7b44a9b Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SeedNumber is the number 0-9
	SeedNumber = "0123456789"
	// SeedLetter is the all lowercase letter
	SeedLetter = "abcdefghijklmnopqrstuvwxyz"
	// SeedCapital is the all uppercase letter
	SeedCapital = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
	// SeedWords is the all number and lowercase letter.
	SeedWords = SeedNumber + SeedLetter
	// SeedReadFriendly removed the ambiguous words, such as number '0' and letter 'o', and so on.
	SeedReadFriendly = "23456789ABCDEFGHJKMNPQRSTWXYZ"
)

Variables

This section is empty.

Functions

func Bytes

func Bytes(n int) []byte

Bytes generate a bytes slice

func Hex

func Hex(n int) string

Hex generate a string that contains only hex number.

func Text

func Text(n int, seed ...string) string

Text generate a string

Types

This section is empty.

Jump to

Keyboard shortcuts

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