random

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Chars        = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" + "abcdefghijklmnopqrstuvwxyz" + "0123456789"
	Digits       = "0123456789"
	Specials     = "=+*/!@#$?"
	All          = Chars + Digits + Specials
	TypeUsername = "TYPE_USERNAME"
	TypePassword = "TYPE_PASSWORD"
)

Variables

This section is empty.

Functions

func Generate

func Generate(length int, outputType string) (string, error)

Generate generates a random string for username or password

func PickEmail

func PickEmail(emailDomains []string) string

PickEmail picks a random item from emailDomains slice

Types

This section is empty.

Jump to

Keyboard shortcuts

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