utils

package
v0.0.0-...-398def1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComparePasswordHash

func ComparePasswordHash(hashedPassword string, password string) error

ComparePasswordHash compares the provided password with the hashed password.

func GeneratePasswordHash

func GeneratePasswordHash(password string) (string, error)

GeneratePasswordHash hashes the provided password using bcrypt.

func WriteValidationError

func WriteValidationError(w http.ResponseWriter, status int, err error) error

func WriterError

func WriterError(w http.ResponseWriter, status int, erre error) error

func WriterJSON

func WriterJSON(w http.ResponseWriter, status int, v any) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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