import"github.com/go-passwd/randomstring"https://go-passwd.github.io/randomstring.html
Returns a length of a string to generate.
NewLength(nuint)Sets string length to n.
NewLengthRange(min, maxuint)Sets string length to length between min and max
Modify a charset and returns it.
NewIncludeCharset(charsstring)Add chars to charset.
NewExcludeCharset(charsstring)Removes chars from charset.
NewBeginWith(lettersstring)Checks if newly selected at random char does start with a one of letters. Function only executed at first char.
NewNoDuplicateCharacters()Checks if string doesn't have newly selected at random char.
NewNoSequentialCharacters(nuint)Checks if string doesn't have n sequentials characters.
Generates a new string based on: charset, length and output rules.
NewDefaultGenerate()Simple random string generator.