utils

package
v0.0.0-...-f77fb02 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Converter

type Converter struct{}

func (*Converter) StructToString

func (c *Converter) StructToString(s interface{}) string

func (*Converter) ToInt

func (c *Converter) ToInt(v interface{}) int

func (*Converter) ToInt64

func (c *Converter) ToInt64(v interface{}) int64

func (*Converter) ToString

func (c *Converter) ToString(v interface{}) string

type Security

type Security struct{}

func (*Security) CheckPasswordHash

func (s *Security) CheckPasswordHash(password, hash string) bool

func (*Security) GenerateToken

func (s *Security) GenerateToken(email string) string

func (*Security) HashPassword

func (s *Security) HashPassword(password string) string

type TimeHelper

type TimeHelper struct{}

func (*TimeHelper) GetLocalTime

func (t *TimeHelper) GetLocalTime() time.Time

type UuidHelper

type UuidHelper struct{}

func (*UuidHelper) GenerateUUID

func (u *UuidHelper) GenerateUUID() uuid.UUID

func (*UuidHelper) ParseUuid

func (u *UuidHelper) ParseUuid(v string) uuid.UUID

Jump to

Keyboard shortcuts

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