Documentation ¶
Index ¶
Constants ¶
View Source
const ( // LettersNumStr is numbers from 0 to 9. LettersNumStr = "0123456789" // LettersUpperStr is upper case from A to Z. LettersUpperStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" // LettersLowerStr is lower case from a to z. LettersLowerStr = "abcdefghijklmnopqrstuvwxyz" )
Variables ¶
View Source
var ( // ErrZeroLengthLetters is error. ErrZeroLengthLetters = errors.New("srcLetters must not be zero in length") )
Functions ¶
Types ¶
type RandStr ¶
type RandStr struct {
// contains filtered or unexported fields
}
RandStr is random string generater.
func (*RandStr) GetRandModule ¶
GetRandModule gets randModule.
func (*RandStr) GetSrcLetters ¶
GetSrcLetters gets srcLetters.
func (*RandStr) SetRandModule ¶
SetRandModule sets randModule.
func (*RandStr) SetSrcLetters ¶
SetSrcLetters sets srcLetters.
Click to show internal directories.
Click to hide internal directories.