Documentation
¶
Overview ¶
Package randgen is a package that helps generate random strings and numbers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var NumberSource int = 1234567890
NumberSource is the source for number generator that contains all the numbers.
var StringAlphaNumericSource string = StringLowercaseAlphaNumericSource + StringUppercaseAlphaNumericSource
StringAlphaNumericSource is a string generator source that contains all cases alph-numeric characters.
var StringAlphaNumericSymbolsSource string = StringLowercaseAlphaNumericSource + StringUppercaseAlphaNumericSource
StringAlphaNumericSymbolsSource is a string generator source that contains all cases alph-numeric characters and symbols.
var StringAlphabetsSource string = StringLowercaseAlphabetsSource + StringUppercaseAlphabetsSource
StringAlphabetsSource is a string generator source that contains both uppercase and lowercase alphabets only.
var StringLowercaseAlphaNumericSource string = StringLowercaseAlphabetsSource + StringNumbericSoure
StringLowercaseAlphaNumericSource is a string generator source that contains lowercase alph-numeric characters only.
var StringLowercaseAlphabetsSource string = "qwertyuiopasdfghjklzxcvbnm"
StringLowercaseAlphabetsSource is a string generator source string that contains only lowercase alphabets.
var StringNumbericSoure string = "0123456789"
StringNumbericSoure is a string generator source that contains numberic characters only.
var StringSymbolsSource string = "~`!@#$%^&*()_+-={}[]|\\;:'\",.<>/?"
StringSymbolsSource is a string generator source that contains symbols only.
var StringUppercaseAlphaNumericSource string = StringUppercaseAlphabetsSource + StringNumbericSoure
StringUppercaseAlphaNumericSource is a string generator source that contains uppercase alph-numeric characters only.
var StringUppercaseAlphabetsSource string = "QWERTYUIOPASDFGHJKLZXCVBNM"
StringUppercaseAlphabetsSource is a string generator source string that contains only uppercase alphabets.
Functions ¶
This section is empty.
Types ¶
type NumberGenerator ¶
NumberGenerator is the interface that describes a number generator object.
func NewNumberGenerator ¶
func NewNumberGenerator() NumberGenerator
NewNumberGenerator returns a new number generator object that implements the NumberGenerator interface.
type StringGenerator ¶
StringGenerator is the interface that describes a string generator object.
func NewStringGenerator ¶
func NewStringGenerator() StringGenerator
NewStringGenerator returns a new string generator object that implements the StringGenerator interface.