utils

package module
v0.0.0-...-e01f164 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2014 License: GPL-3.0 Imports: 2 Imported by: 5

Documentation

Index

Constants

View Source
const AllRunes = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"

AllRunes defines the possible characters which will be used by RandomString to generate a string.

View Source
const StringLength = 10

StringLength defines the length of the string generated by RandomString.

Variables

This section is empty.

Functions

func RandomString

func RandomString() string

RandomString generates a random string with a specific size, defined by StringLength. The possible characters are defined by AllCharacters (A-Z, a-z, 0-9). This function uses the default random source of "math/rand".

Types

This section is empty.

Jump to

Keyboard shortcuts

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