random

package
v4.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const LowerAlphaRunes = "abcdefghijklmnopqrstuvwxyz"
View Source
const NumericRunes = "0123456789"
View Source
const UpperAlphaRunes = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"

Variables

This section is empty.

Functions

func Alpha

func Alpha(prefix string, length int) string

Return a random string of alpha characters

func DomainName

func DomainName() string

Return a random domain name in the form "randomAlpha.net"

func Item

func Item(items ...string) string

Given a list of strings, return one of the strings randomly

func Runes

func Runes(prefix string, length int, runes ...string) string

Return a random string made up of characters passed

func String

func String(prefix string, length int) string

Return a random string of alpha and numeric characters

Types

This section is empty.

Jump to

Keyboard shortcuts

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