Documentation ¶
Index ¶
- func CheckMapHaveKeys[C comparable, A any](m map[C]A, keys ...C) error
- func CompareHashAndPassword(hashedPassword, password, salt string) error
- func ConvertMapStringStringToMapStringAny(m map[string]string) (n map[string]any)
- func ConvertMapToString(m map[string]string) (string, error)
- func ConvertStringToMap(s string) (map[string]string, error)
- func GenerateRandomSalt() (string, error)
- func GetIPAddress(r *http.Request) string
- func GetUserAgent(r *http.Request) string
- func HashPasswordWithSalt(password string, salt string, bcryptCost int) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckMapHaveKeys ¶
func CheckMapHaveKeys[C comparable, A any](m map[C]A, keys ...C) error
func CompareHashAndPassword ¶
func GenerateRandomSalt ¶
func GetUserAgent ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.