Documentation ¶
Index ¶
- func CorsHeaders() map[string]string
- func DeepCopy(fromValue interface{}) (toValue interface{})
- func EscapeOpenSearchSearchString(str string) string
- func FormatPhoneNumber(phoneNumber string) string
- func GetEnv(name string, def string) (env string)
- func IsUrlStrict(str string) bool
- func IsValidUsername(str string) bool
- func PointerToValue[V any](value *V) V
- func RemoveUrlScheme(str string) string
- func StandardisePhoneNumber(number string) string
- func StripQueryString(inputUrl string) (string, error)
- func UnzipData(data []byte) (map[string][]byte, error)
- func ValidateEmailAddress(email string) (string, error)
- func ValueToPointer[V any](value V) *V
- func ZipData(fileName string, data []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EscapeOpenSearchSearchString ¶ added in v1.113.0
EscapeOpenSearchSearchString See https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html#_reserved_characters
func FormatPhoneNumber ¶ added in v1.113.0
func IsUrlStrict ¶ added in v1.113.0
IsUrlStrict Returns whether a URL is valid in a strict way (Must have scheme and host)
func IsValidUsername ¶ added in v1.113.0
func PointerToValue ¶ added in v1.113.0
func PointerToValue[V any](value *V) V
func RemoveUrlScheme ¶ added in v1.113.0
RemoveUrlScheme Removes http:// or https:// from a URL
func StandardisePhoneNumber ¶ added in v1.113.0
StandardisePhoneNumber standardises phone numbers with +27 instead of 0 prefix
func StripQueryString ¶ added in v1.113.0
StripQueryString - Strips the query parameters from a URL
func ValidateEmailAddress ¶ added in v1.113.0
func ValueToPointer ¶ added in v1.113.0
func ValueToPointer[V any](value V) *V
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.