utils

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertTel

func ConvertTel(tel string) string

func ConvertWebsite

func ConvertWebsite(website string) string

func DoPasswordsMatch

func DoPasswordsMatch(hashedPassword, currPassword string) bool

DoPasswordsMatch Check if two passwords match using Bcrypt's CompareHashAndPassword which return nil on success and an error on failure.

func GetAddressFields

func GetAddressFields(headersFromSchemas []string, withSchemaNameAsPrefix bool, toUpper bool) []string

func GetBusinessFields

func GetBusinessFields(headersFromSchemas []string, withSchemaNameAsPrefix bool, toUpper bool) []string

func HashPassword

func HashPassword(password string) (string, error)

HashPassword Hash password using the bcrypt hashing algorithm

Types

type LangQ

type LangQ struct {
	Lang   string
	Q      float64
	Locale string
}

func ParseAcceptLanguage

func ParseAcceptLanguage(acptLang string) []LangQ

Jump to

Keyboard shortcuts

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