Documentation ¶
Index ¶
- func CountCapitalLetters(str string) int
- func CountNumericCharacters(str string) int
- func CountSmallLetters(str string) int
- func CountSpecialCharacters(str string) int
- func GetRandomAlphaString(n int) string
- func GetRandomNumericString(n int) string
- func GetRandomSpecialCharacterString(n int) string
- func GetRandomString(n int) string
- func IsAlphaNumeric(input string) bool
- func IsAlphaNumericOrDotDashUnderscore(input string) bool
- func IsPositiveNumber(input string) bool
- func IsValidEmail(email string) bool
- type String
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountCapitalLetters ¶
func CountNumericCharacters ¶
func CountSmallLetters ¶
func CountSpecialCharacters ¶
func GetRandomAlphaString ¶
GetRandomAlphaString will get a n character long random alphabetic string
func GetRandomNumericString ¶
GetRandomNumericString will get a n character long random numeric string
func GetRandomSpecialCharacterString ¶
GetRandomSpecialCharacterString will get a n character long random string made of special characters
func GetRandomString ¶
GetRandomString will get a n character long random string that might contain alphabets, numbers and special chars
func IsAlphaNumeric ¶
func IsPositiveNumber ¶
func IsValidEmail ¶
IsValidEmail checks if the supplied string is a valid email
Types ¶
type String ¶
type String struct {
// contains filtered or unexported fields
}
String facilitates basic string type and functions
func (String) GetOriginalString ¶
GetOriginalString returns the original value with which the String wqs created
func (*String) Reset ¶
func (s *String) Reset()
Reset sets the current value of the String to its original value with which it was created
func (*String) ToLowerCase ¶
ToLowerCase converts the string to lower case
func (*String) ToUpperCase ¶
ToUpperCase converts the string to lower case