utils

package
v0.0.0-...-4382370 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsStringInSlice

func ContainsStringInSlice(item string, items []string) bool

ContainsStringInSlice -> check item in array

func HashPassword

func HashPassword(password string) (string, error)

HashPassword -> get hashed password

func IsValidLicensePlate

func IsValidLicensePlate(licensePlate string) bool

IsValidLicensePlate -> validate string regex

func ValidatorLicensePlate

func ValidatorLicensePlate(fieldLevel validator.FieldLevel) bool

ValidatorLicensePlate -> custom validator for licenseplate

func VerifyPassword

func VerifyPassword(hashPassword string, password string) bool

VerifyPassword -> check password

Types

This section is empty.

Jump to

Keyboard shortcuts

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