utils

package
v0.0.0-...-bef02c6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateHash

func GenerateHash(password string) (string, error)

func GenerateUUID

func GenerateUUID() string

func IsValidPassword

func IsValidPassword(password string) bool

func IsValidPhoneNumber

func IsValidPhoneNumber(phoneNumber string) bool

func TryTranslateValidationErrors

func TryTranslateValidationErrors(errList ...error) error

TryTranslateValidationErrors accepts variable number of errors and tries to convert each input error into validator.ValidationErrors. If conversion succeeds, it is wrapped inside an instance of AppError.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL