Documentation ¶
Index ¶
- func Contains(arr []string, elem string) bool
- func GenerateRandomBytes(n int) ([]byte, error)
- func GenerateRandomString(n int) (string, error)
- func GetRegexCaptureGroupParams(regEx, in string) (paramsMap map[string]string)
- func StructToLowerCase(data interface{}, skipFields []string)
- func ToJSON(i interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomBytes ¶
GenerateRandomBytes returns securely generated random bytes. It will return an error if the system's secure random number generator fails to function correctly, in which case the caller should not continue.
func GenerateRandomString ¶
GenerateRandomString returns a securely generated random string. It will return an error if the system's secure random number generator fails to function correctly, in which case the caller should not continue.
func GetRegexCaptureGroupParams ¶
GetRegexCaptureGroupParams -- Parses url with the given regular expression and returns the group values defined in the expression.
func StructToLowerCase ¶
func StructToLowerCase(data interface{}, skipFields []string)
StructToLowerCase --Converts all fields of the struct to lowercase
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.