Documentation ¶
Index ¶
- Constants
- func DeepCopyMap[K comparable, V any](original map[K]V) map[K]V
- func FileMove(sourcePath, destPath string) error
- func GetTargetURL(reqURL *url.URL) *url.URL
- func GetTargetURLStr(reqURL *url.URL) string
- func HostPortFromUrl(wafURL string, port uint16) (isTLS bool, hostPort string, err error)
- func ValidateEmail(email string) (string, error)
- type Hash
Constants ¶
View Source
const MaxEmailLength = 254
Variables ¶
This section is empty.
Functions ¶
func DeepCopyMap ¶ added in v0.5.0
func DeepCopyMap[K comparable, V any](original map[K]V) map[K]V
DeepCopyMap is a generic function to copy a map with any key and value types.
func FileMove ¶ added in v0.4.6
FileMove moves a file from a source path to a destination path. This must be used across the codebase for compatibility with Docker volumes and Golang (fixes Invalid cross-device link when using os.Rename)
func GetTargetURL ¶ added in v0.5.0
GetTargetURL returns *url.URL with empty path, query and fragments parts.
func GetTargetURLStr ¶ added in v0.5.0
GetTargetURLStr returns *url.URL with empty path, query and fragments parts as a string.
func HostPortFromUrl ¶ added in v0.5.0
HostPortFromUrl returns is TLS required flag and host:port string.
func ValidateEmail ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.