random

package
v3.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2019 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlphanumericString

func AlphanumericString(n int) (string, error)

AlphanumericString returns a random string of length n comprised of [A-Za-z0-9]

func Bytes

func Bytes(n int) ([]byte, error)

Bytes returns a random byte slice of legth n

func FQDN

func FQDN(parentDomain string, n int) (string, error)

FQDN returns a random fully qualified domain name within a given parent domain

func LowerCaseAlphaString

func LowerCaseAlphaString(n int) (string, error)

LowerCaseAlphaString returns a random string of length n comprised of [a-z]

func LowerCaseAlphanumericString

func LowerCaseAlphanumericString(n int) (string, error)

LowerCaseAlphanumericString returns a random string of length n comprised of [a-z0-9]

func StorageAccountName

func StorageAccountName(prefix string) (string, error)

StorageAccountName returns a random string suitable for use as an Azure storage account name

func String

func String(letterBytes string, n int) (string, error)

String returns a random string of length n comprised of bytes in letterBytes

func VaultURL

func VaultURL(prefix string) (string, error)

VaultURL returns a random string suitable for use as an Azure key vault URL

Types

This section is empty.

Source Files

  • random.go

Jump to

Keyboard shortcuts

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