Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // All represents the string instruction set that contains // all alpha-numeric characters. All set = [2]int{0, 62} // Upper represents the string instruction set that contains // only uppercase non-numeric characters. Upper set = [2]int{26, 52} // Lower represents the string instruction set that contains // only lowercase non-numeric characters. Lower set = [2]int{0, 26} // Number represents the string instruction set that contains // only numeric characters. Number set = [2]int{52, 62} // Characters represents the string instruction set that contains // mixed case non-numeric characters. Characters set = [2]int{0, 52} // Rand is the generic Random number generator, based // on a time seed. Rand = &random{Rand: rand.New(rand.NewSource(time.Now().UnixNano()))} )
Functions ¶
Types ¶
type Matcher ¶
type Matcher string
Matcher is an alias of a string that can contain specific variable instructsions to be replaced when calling the 'String' function. This alias provides the 'Match' function, which returns a Regexp struct that will match any value generated.
func (Matcher) Match ¶
Match returns a valid Regexp struct that is guaranteed to match any string generated by the Matcher's 'String' function.
func (Matcher) MatchEx ¶
MatchEx returns a valid Regexp struct that is guaranteed to match any string generated by the Matcher's 'String' function. MatchEx returns an inverse matcher if the bool is false
Click to show internal directories.
Click to hide internal directories.