Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandString ¶
RandString returns a new string. if `source` is empty, the string is automatically generated from `defaultLetters`, otherwise its is generated from the `source` string, eg:
automatically generated from default letters str, err := RandString(5) if err != nil { panic(err) // panic or logging }
specify the source string str, err := RandString(10, "abcdef") if err != nil { log.Fatal(err) }
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.