utils

package
v0.0.0-...-4b14bc7 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateJWT

func CreateJWT(claims jwt.Claims) (string, error)

CreateJWT create a jwt with a Claims what resive, and with the key generate a JWT and return it

func GetHash

func GetHash(s string) string

GetHash generate a hash for the string paramater and return a hash string created with encrypt sha256

func IsEmail

func IsEmail(s string) bool

IsEmail validate if the parameter string are a email It returns true if it's a email and false if its no

func LoadENV

func LoadENV()

loadENV get to the so variable, all the enviroments variables of the .env file

Types

This section is empty.

Jump to

Keyboard shortcuts

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