tools

package
v0.0.0-...-2a01338 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Success message = "success"
	Created message = "created"
	Updated message = "updated"
	Deleted message = "deleted"
	Error   message = "error"
)

Variables

This section is empty.

Functions

func Bcrypt

func Bcrypt(password string) (string, error)

func BcryptCompare

func BcryptCompare(password, hashedPassword string) error

func BindValidate

func BindValidate[T any](c echo.Context, t T) error

func JSONRespErr

func JSONRespErr(c echo.Context, code int, i interface{}) error

func JSONRespOk

func JSONRespOk(c echo.Context, i interface{}) error

func UnwrapRecursive

func UnwrapRecursive(err error) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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