utils

package
v0.0.0-...-16c9f73 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComparePassword

func ComparePassword(password string, hashPassword string) bool

func HashPassword

func HashPassword(password string) (string, error)

func ResponseError

func ResponseError(ctx *gin.Context, status int, message any)

func ResponseSuccess

func ResponseSuccess(ctx *gin.Context, status int, data any)

Types

type Response

type Response struct {
	Status  string `json:"status,omitempty"`
	Data    any    `json:"data,omitempty"`
	Message any    `json:"message,omitempty"`
}

Jump to

Keyboard shortcuts

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