common

package
v0.0.0-...-b3accde Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PasswordHashCost = bcrypt.DefaultCost

Functions

func CheckPasswordHash

func CheckPasswordHash(password, hash string) bool

CheckPasswordHash compare password with hash

func HashPassword

func HashPassword(password string) (string, error)

hashPassword generates a hashed password from a plaintext string

func MustHashPassword

func MustHashPassword(password string) string

func NullString

func NullString(value string) sql.NullString

func ParseBodyThenValidate

func ParseBodyThenValidate(ctx *fiber.Ctx, v any) (bool, error)

func ParseIDFromCtx

func ParseIDFromCtx(ctx *fiber.Ctx, paramName string) (int64, error)

func TrueNullBool

func TrueNullBool() sql.NullBool

Types

This section is empty.

Jump to

Keyboard shortcuts

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